Skip to content

Commit

Permalink
SplitSweepIntoComponents: Workaround IP bug in preemptive thread
Browse files Browse the repository at this point in the history
This was found in the test ExportIntoNWBSweepBySweep [1] and already
reported upstream.

[1]: https://github.com/AllenInstitute/MIES/actions/runs/6473820032/job/17577887259?pr=1900
  • Loading branch information
t-b committed Oct 19, 2023
1 parent 39476ac commit 3126726
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Packages/MIES/MIES_MiesUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -5879,7 +5879,12 @@ threadsafe Function SplitSweepIntoComponents(numericalValues, sweep, sweepWave,
endif
endif

MoveWave data, targetDFR:$str
// @todo workaround IP bug #4702 where MoveWave fails in preemptive threads
if(MU_RunningInMainThread())
MoveWave data, targetDFR:$str
else
Duplicate data, targetDFR:$str
endif
endfor

string/G targetDFR:note = note(sweepWave)
Expand Down

0 comments on commit 3126726

Please sign in to comment.