@@ -143,15 +143,13 @@ Function RD_CompareLabnotebooks(string device, variable sweepNo)
143143 RD_CompareLabnotebooks_Impl ( textualValues_replay, textualValues_orig, sweepNo)
144144End
145145
146- Function RD_CompareSCI ( string device, variable refSweepNo, variable headstage )
146+ Function RD_CompareSweeps ( string device, WAVE sweeps )
147147
148148 variable sweepNo
149149
150150 WAVE numericalValues = GetLBNumericalValues ( device)
151151 WAVE /T textualValues = GetLBTextualValues ( device)
152152
153- WAVE sweeps = AFH_GetSweepsFromSameSCI ( numericalValues, refSweepNo, headstage)
154-
155153 printf "*** Evaluating sweep and LBN data ***\r "
156154 for ( sweepNo : sweeps)
157155 printf "*** Sweep: %d ***\r " , sweepNo
@@ -160,6 +158,26 @@ Function RD_CompareSCI(string device, variable refSweepNo, variable headstage)
160158 endfor
161159End
162160
161+ Function RD_CompareSCI ( string device, variable refSweepNo, variable headstage)
162+
163+ WAVE numericalValues = GetLBNumericalValues ( device)
164+ WAVE /T textualValues = GetLBTextualValues ( device)
165+
166+ WAVE sweeps = AFH_GetSweepsFromSameSCI ( numericalValues, refSweepNo, headstage)
167+
168+ RD_CompareSweeps ( device, sweeps)
169+ End
170+
171+ Function RD_CompareRAC ( string device, variable refSweepNo)
172+
173+ WAVE numericalValues = GetLBNumericalValues ( device)
174+ WAVE /T textualValues = GetLBTextualValues ( device)
175+
176+ WAVE sweeps = AFH_GetSweepsFromSameRACycle ( numericalValues, refSweepNo)
177+
178+ RD_CompareSweeps ( device, sweeps)
179+ End
180+
163181// Difference in epoch info, most likely due to non-deterministic FIFO positions
164182// $ git diff --word-diff --word-diff-regex=. --no-index a.txt b.txt
165183// diff --git a/a.txt b/b.txt
@@ -209,11 +227,32 @@ static Function RD_CompareLabnotebooks_Impl(WAVE values_replay, WAVE values_orig
209227 "Serial Number" \
210228 }
211229
230+ // todo volatile keys
231+ Make / FREE/ T notYetOverridenKeys = { "Neut Cap Value" , \
232+ "Bridge Bal Value" , \
233+ "Pipette Offset" , \
234+ "Slow current injection level" , \
235+ "Autobias Ibias max" , \
236+ "Async 2 Gain" , \
237+ "Async 3 Gain" , \
238+ "Epochs" , \
239+ "TP Baseline Vm" , \
240+ "TP Peak Resistance" , \
241+ "TP Steady State Resistance" , \
242+ "TP Cycle ID" , \
243+ "I-Clamp Holding Enable" , \
244+ "I-Clamp Holding Level" , \
245+ "Fast compensation capacitance" , \
246+ "Slow compensation capacitance" , \
247+ "Fast compensation time" , \
248+ "Slow compensation time" }
249+
212250 for ( j = 0; j < numCols; j += 1 )
213251 key_orig = GetDimLabel ( values_orig, COLS, j)
214252 key_replay = GetDimLabel ( values_replay, COLS, j)
215253
216- if ( GetRowIndex ( keysToIgnore, str = key_orig) >= 0 )
254+ if ( GetRowIndex ( keysToIgnore, str = key_orig) >= 0 \
255+ || GetRowIndex ( notYetOverridenKeys, str = key_orig) >= 0 )
217256 continue
218257 endif
219258
0 commit comments