Skip to content

Commit 456d734

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 70d5785 commit 456d734

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
@@ -2059,16 +2059,19 @@ Function InsertRecreatedEpochsIntoLBN(WAVE numericalValues, WAVE/T textualValues
20592059

20602060
for(channelType : channelTypes)
20612061
for(channelNumber = 0; channelNumber < NUM_DA_TTL_CHANNELS; channelNumber += 1)
2062-
// Currently only implemented for DAC channel type
2063-
if(channelType != XOP_CHANNEL_TYPE_DAC)
2064-
continue
2065-
endif
20662062

20672063
epochList = EP_EpochWaveToStr(recEpochs, channelNumber, channelType)
20682064
if(IsEmpty(epochList))
20692065
continue
20702066
endif
20712067

2068+
if(channelType == XOP_CHANNEL_TYPE_TTL)
2069+
keys[0][colCount] = CreateTTLChannelLBNKey(EPOCHS_ENTRY_KEY, channelNumber)
2070+
values[0][colCount][INDEP_HEADSTAGE] = epochList
2071+
colCount += 1
2072+
continue
2073+
endif
2074+
20722075
headstage = GetHeadstageForChannel(numericalValues, sweepNo, channelType, channelNumber, DATA_ACQUISITION_MODE)
20732076
if(IsAssociatedChannel(headstage))
20742077
if(IsNaN(assocCol))

0 commit comments

Comments
 (0)