forked from wking/igor
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
there is a thread safety issues when loading files (binarywave, load) in parallel/async.
All theses global Wave1235- and BinHeader1235-Objects are not thread safe.
All occurrences should be wrapped into a function:
def make_BinHeader5():
BinHeader5 = _Structure( # `version` field pulled out into Wave
.
.
.
])
return BinHeader5
def make_Wave5():
Wave5 = _DynamicStructure(
.
.
.
make_BinHeader5(), 'bin_header',
help='Binary wave header'),
.
.
. ])
return Wave5
In my case using load() in parallel, the _numpy.ndarray() failed due to mismatching shape an buffer sizes. The global objects messed up the meta data. This error only occured when loading files with different shapes in parallel.
Thank you
Michael
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working