Skip to content

Commit

Permalink
Remove filelock when reading in column depth spline
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwg11 committed Dec 20, 2024
1 parent 91bd086 commit 52a8aa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions taurunner/track/utils/spline_column_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 52a8aa7

Please sign in to comment.