Skip to content

Commit e26bbaf

Browse files
committed
LBN PostProc: Also add TTL epochs to postproc LBN insertion on NWB export
TTL epochs are now also inserted into the LBN.
1 parent 6465a20 commit e26bbaf

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
@@ -1757,6 +1757,7 @@ Function/WAVE EP_RecreateEpochsFromLoadedData(WAVE numericalValues, WAVE/T textu
17571757

17581758
WAVE/T recEpochWave = GetEpochsWaveAsFree()
17591759
EP_CollectEpochInfoDA(recEpochWave, s)
1760+
EP_CollectEpochInfoTTL(recEpochWave, s)
17601761
EP_AddRecreatedUserEpochs(numericalValues, textualValues, sweepDFR, sweepNo, s, recEpochWave)
17611762

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

20022002
for(channelType : channelTypes)
20032003
for(channelNumber = 0; channelNumber < NUM_DA_TTL_CHANNELS; channelNumber += 1)
2004-
// Currently only implemented for DAC channel type
2005-
if(channelType != XOP_CHANNEL_TYPE_DAC)
2006-
continue
2007-
endif
20082004

20092005
epochList = EP_EpochWaveToStr(recEpochs, channelNumber, channelType)
20102006
if(IsEmpty(epochList))
20112007
continue
20122008
endif
20132009

2010+
if(channelType == XOP_CHANNEL_TYPE_TTL)
2011+
keys[0][colCount] = CreateTTLChannelLBNKey(EPOCHS_ENTRY_KEY, channelNumber)
2012+
values[0][colCount][INDEP_HEADSTAGE] = epochList
2013+
colCount += 1
2014+
continue
2015+
endif
2016+
20142017
headstage = GetHeadstageFromLBN(numericalValues, sweepNo, channelType, channelNumber, DATA_ACQUISITION_MODE)
20152018
if(IsAssociatedChannel(headstage))
20162019
if(IsNaN(assocCol))

0 commit comments

Comments
 (0)