Skip to content

Commit c39e1f5

Browse files
MichaelHutht-b
authored andcommitted
LBN PostProc: Also add TTL epochs to postproc LBN insertion on NWB export
TTL epochs are now also inserted into the LBN.
1 parent 6e3aeb3 commit c39e1f5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Packages/MIES/MIES_Epochs.ipf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@ Function/WAVE EP_RecreateEpochsFromLoadedData(WAVE numericalValues, WAVE/T textu
17941794

17951795
WAVE/T recEpochWave = GetEpochsWaveAsFree()
17961796
EP_CollectEpochInfoDA(recEpochWave, s)
1797+
EP_CollectEpochInfoTTL(recEpochWave, s)
17971798
EP_AddRecreatedUserEpochs(numericalValues, textualValues, sweepDFR, sweepNo, s, recEpochWave)
17981799

17991800
WAVE/Z channelDA = GetDAQDataSingleColumnWaveNG(numericalValues, textualValues, sweepNo, sweepDFR, XOP_CHANNEL_TYPE_DAC, s.DACList[0])

Packages/MIES/MIES_MiesUtilities_Logbook.ipf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,16 +2096,19 @@ Function InsertRecreatedEpochsIntoLBN(WAVE numericalValues, WAVE/T textualValues
20962096

20972097
for(channelType : channelTypes)
20982098
for(channelNumber = 0; channelNumber < NUM_DA_TTL_CHANNELS; channelNumber += 1)
2099-
// Currently only implemented for DAC channel type
2100-
if(channelType != XOP_CHANNEL_TYPE_DAC)
2101-
continue
2102-
endif
21032099

21042100
epochList = EP_EpochWaveToStr(recEpochs, channelNumber, channelType)
21052101
if(IsEmpty(epochList))
21062102
continue
21072103
endif
21082104

2105+
if(channelType == XOP_CHANNEL_TYPE_TTL)
2106+
keys[0][colCount] = CreateTTLChannelLBNKey(EPOCHS_ENTRY_KEY, channelNumber)
2107+
values[0][colCount][INDEP_HEADSTAGE] = epochList
2108+
colCount += 1
2109+
continue
2110+
endif
2111+
21092112
headstage = GetHeadstageForChannel(numericalValues, sweepNo, channelType, channelNumber, DATA_ACQUISITION_MODE)
21102113
if(IsAssociatedChannel(headstage))
21112114
if(IsNaN(assocCol))

0 commit comments

Comments
 (0)