Skip to content

Commit

Permalink
GetOverrideResults: Prefer it and fix the code for ipt
Browse files Browse the repository at this point in the history
Our ipt tool gained a new version which treats whitespace slightly
different resulting in compilation failures after `ipt format`.

Let's adapt the code which was not superb anyway.
  • Loading branch information
t-b committed Sep 6, 2024
1 parent c463b66 commit c699796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Packages/MIES/MIES_AnalysisFunctions_PatchSeq.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -5585,7 +5585,8 @@ static Function [variable boundsAction, variable scalingFactorDAScale] PSQ_CR_De
[lowerValue, upperValue] = WaveMinAndMax(singleAD, chirpStart, cycleEnd)

if(TestOverrideActive())
WAVE/SDFR=root: overrideResults
WAVE overrideResults = GetOverrideResults()

NVAR count = $GetCount(device)
upperValueOverride = overrideResults[0][count][1]
lowerValueOverride = overrideResults[0][count][2]
Expand Down
3 changes: 2 additions & 1 deletion Packages/MIES/MIES_WaveDataFolderGetters.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -7617,7 +7617,8 @@ End
/// follow our usual rules so it might not exist.
Function/WAVE GetOverrideResults()

WAVE/Z/SDFR=root: overrideResults
DFREF dfr = root:
WAVE/Z/SDFR=dfr overrideResults

return overrideResults
End
Expand Down

0 comments on commit c699796

Please sign in to comment.