Skip to content

Commit 2f7e5f9

Browse files
committed
PSQ_NumPassesInSet: Always return an integer
In the dashboard we use this function to gather the passes in the set during data acquisition. Therefore it can happen that the Sweep QC state of a sweep is still NaN. In this case PSQ_NumPassesInSet would always return NaN. This is not what we want so we now default to returning zero when querying the Sweep QC state for missing entries. For the PSQ analysis function this change does not change anything as all analysis functions call this function with Sweep QC labnotebook entries present.
1 parent 341135c commit 2f7e5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ Function PSQ_NumPassesInSet(numericalValues, type, sweepNo, headstage)
732732

733733
Make/FREE/N=(DimSize(sweeps, ROWS)) passes
734734
key = CreateAnaFuncLBNKey(type, PSQ_FMT_LBN_SWEEP_PASS, query = 1)
735-
passes[] = GetLastSettingIndep(numericalValues, sweeps[p], key, UNKNOWN_MODE)
735+
passes[] = GetLastSettingIndep(numericalValues, sweeps[p], key, UNKNOWN_MODE, defValue = 0)
736736

737737
return sum(passes)
738738
End

0 commit comments

Comments
 (0)