Skip to content

Commit

Permalink
Fix #2315 by causing the ITK libraries to load at a time when other t…
Browse files Browse the repository at this point in the history
…hreads won't be doing file I/O.
  • Loading branch information
akenmorris committed Aug 27, 2024
1 parent 59ac8e6 commit 6dda5b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/DeepSSMUtilsPackage/DeepSSMUtils/run_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
import DeepSSMUtils
import DeepSSMUtils.eval_utils as eval_utils

import itk
# this is here to cause the ITK libraries to be loaded at a safe time when other threads won't be doing file I/O
# See #2315
temporary_parameter_object = itk.ParameterObject.New()

def create_split(project, train, val, test):
# Create split
Expand Down

0 comments on commit 6dda5b6

Please sign in to comment.