Skip to content

Commit

Permalink
Merge pull request #2272 from AllenInstitute/bugfix/2272-lock-returne…
Browse files Browse the repository at this point in the history
…d-cached-waves

AFH_GetSweepsFromSameRACycle/AFH_GetSweepsFromSameSCI: Lock returned wave
  • Loading branch information
t-b authored Oct 4, 2024
2 parents 349947f + c19ddab commit acf2eb1
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 acf2eb1

Please sign in to comment.