Skip to content

Commit bee7d70

Browse files
timjarskyt-b
authored andcommitted
WIP
changes deconvolved filter, trace filter, and histogram changes PSX changes to baseline, peak, and tau calculations changes changes changes changes changes changes changes changes changes again updates to GetPSXEventWaveAsFree. Changes were made because the deconvolved peak aligns with the event's peak rather than the event onset. wip changes changes changes changes changes changes changes changes changes changes changes changes WIP from live testing WIP: Add panel version changes changes changes changes WIP: dev docu for commit message // New function: // PSX_OnsetTime(peak_t, baseline_t, DiffV) /// onset_t = time of the percentDiffThresh amplitude of the 1st differential of the event /// percentDiffThresh taken from psxRiseTime user input, default to 5% // Order of operations: // 1. DiffV = Differentiated sweep trace // 2. DiffPeak = the peak of the differentiated trace between [peak_t - baseline_t], peak = min for (–) kernel sign, max for (+) kernel sign // 3. DiffPeak_t = time of DiffPeak // 4. onset_t = findlevel/R= (DiffPeak_t, baseline_t) wave = DiffV, level=(percentDiffThresh * DiffPeak) // 5. Return onset_t changes changes wip from live testing cc changes changes changes tests/TestOperationRiseTime: Adapt it WIP: Docu update
1 parent 47541ea commit bee7d70

9 files changed

Lines changed: 553 additions & 241 deletions

‎Packages/MIES/MIES_Cache.ipf‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ Function/S CA_AveragingWaveModKey(WAVE wv)
209209
return num2istr(CA_RecursiveWavemodCRC(wv)) + "Version 1"
210210
End
211211

212+
/// @brief Cache key generator for the tau range calculation
213+
/// of psx events
214+
Function/S CA_PSXEventGoodTauRange(WAVE wv)
215+
216+
return num2istr(CA_RecursiveWavemodCRC(wv)) + "Version 1"
217+
End
218+
212219
/// @brief Calculated a CRC from non wave reference waves using modification data, wave modification count and wave location.
213220
/// If the given wave is a wave reference wave, then the CRC is calculated recursively from
214221
/// all non wave reference waves and null wave references found.
@@ -438,12 +445,7 @@ End
438445

439446
Function/S CA_PSXOperationKey(string comboKey, string psxParameters)
440447

441-
return CA_PSXBaseKey(comboKey, psxParameters) + " Operation " + ":Version 2"
442-
End
443-
444-
Function/S CA_PSXRiseTimeKey(string comboKey, string psxParameters)
445-
446-
return CA_PSXBaseKey(comboKey, psxParameters) + " PSX Rise time " + ":Version 2"
448+
return CA_PSXBaseKey(comboKey, psxParameters) + " Operation " + ":Version 3"
447449
End
448450

449451
Function/S CA_PSXAnalyzePeaks(string comboKey, string psxParameters)

‎Packages/MIES/MIES_Constants.ipf‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Constant DA_EPHYS_PANEL_VERSION = 64
2222
Constant DATA_SWEEP_BROWSER_PANEL_VERSION = 51
2323
Constant WAVEBUILDER_PANEL_VERSION = 14
2424
Constant ANALYSISBROWSER_PANEL_VERSION = 5
25+
Constant PSX_PLOT_PANEL_VERSION = 1
2526

2627
/// Version of the stimset wave note
2728
Constant STIMSET_NOTE_VERSION = 11
@@ -2032,6 +2033,7 @@ StrConstant CO_EMPTY_DAC_LIST = "emptyDACList"
20322033
StrConstant CO_SF_TOO_MANY_TRACES = "SF_tooManyTraces"
20332034
StrConstant CO_PSX_CLIPPED_STATS = "psx_clippedStats"
20342035
StrConstant CO_ARCHIVE_ONCE = "ArchiveLogs"
2036+
StrConstant CO_PSX_UPGRADE_EVENT = "psx_updateEvent"
20352037
///@}
20362038

20372039
/// @name Constants for SweepFormula Meta data in JSON format
@@ -2347,11 +2349,12 @@ StrConstant PSX_STATS_LABELS = "Average;Median;Average Deviation;Standard deviat
23472349
///@{
23482350
Constant PSX_HORIZ_OFFSET_ONSET = 0
23492351
Constant PSX_HORIZ_OFFSET_PEAK = 1
2352+
Constant PSX_HORIZ_OFFSET_SLEW = 2
23502353
///@}
23512354

2352-
Constant PSX_DECONV_FILTER_DEF_LOW = 0.002
2353-
Constant PSX_DECONV_FILTER_DEF_HIGH = 0.004
2354-
Constant PSX_DECONV_FILTER_DEF_ORDER = 101
2355+
Constant PSX_DECONV_FILTER_DEF_LOW = 500
2356+
Constant PSX_DECONV_FILTER_DEF_HIGH = 50
2357+
Constant PSX_DECONV_FILTER_DEF_ORDER = 7
23552358

23562359
StrConstant PSX_JWN_COMBO_KEYS_NAME = "ComboKeys"
23572360

‎Packages/MIES/MIES_SweepFormula.ipf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ Function [STRUCT RGBColor s] SF_GetTraceColor(string graph, string opStack, WAVE
15161516
return [s]
15171517
endif
15181518

1519-
WAVE numericalValues = SFH_GetLabNoteBookForSweep(graph, sweepNo, mapIndex, LBN_NUMERICAL_VALUES)
1519+
WAVE/Z numericalValues = SFH_GetLabNoteBookForSweep(graph, sweepNo, mapIndex, LBN_NUMERICAL_VALUES)
15201520
if(!WaveExists(numericalValues))
15211521
return [s]
15221522
endif

0 commit comments

Comments
 (0)