Skip to content

Commit

Permalink
AFH_GetSweepsFromSameRACycle/AFH_GetSweepsFromSameSCI: Lock returned …
Browse files Browse the repository at this point in the history
…wave

This signals the caller that it should not be changed.
  • Loading branch information
t-b committed Oct 1, 2024
1 parent 2c44638 commit 20cc7dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/MIES/MIES_AnalysisFunctionHelpers.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ threadsafe Function/WAVE AFH_GetSweepsFromSameRACycle(numericalValues, sweepNo)
WAVE/Z sweeps = cache[sweepNo][%$RA_ACQ_CYCLE_ID_KEY][0]
if(WaveExists(sweeps))
if(DimSize(sweeps, ROWS) > 0) // valid cached entry
ChangeWaveLock(sweeps, 1)
return sweeps
else // non-existant entry
return $""
Expand Down Expand Up @@ -325,6 +326,7 @@ threadsafe Function/WAVE AFH_GetSweepsFromSameSCI(numericalValues, sweepNo, head
WAVE/Z sweeps = cache[sweepNo][%$STIMSET_ACQ_CYCLE_ID_KEY][headstage]
if(WaveExists(sweeps))
if(DimSize(sweeps, ROWS) > 0) // valid cached entry
ChangeWaveLock(sweeps, 1)
return sweeps
else // non-existant entry
return $""
Expand Down

0 comments on commit 20cc7dd

Please sign in to comment.