From 52a8aa7a81104f46f0fa7af39aa23d56598d6df4 Mon Sep 17 00:00:00 2001 From: thomwg11 Date: Fri, 20 Dec 2024 17:23:31 -0500 Subject: [PATCH] Remove filelock when reading in column depth spline --- taurunner/track/utils/spline_column_depth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/taurunner/track/utils/spline_column_depth.py b/taurunner/track/utils/spline_column_depth.py index 34a8a77..ea48aa1 100644 --- a/taurunner/track/utils/spline_column_depth.py +++ b/taurunner/track/utils/spline_column_depth.py @@ -120,9 +120,8 @@ def set_spline(track, body, npad=5): if track.desc=='chord': x2X_fname, spline_exists = spline_fname(hash_s) if spline_exists: - with FileLock(x2X_fname): - with open(x2X_fname, 'rb') as pkl_file: - x2X_spline = pkl.load(pkl_file) + with open(x2X_fname, 'rb') as pkl_file: + x2X_spline = pkl.load(pkl_file) else: from taurunner.track import chord if track.depth==0: