Skip to content

Commit

Permalink
Use Getter for Electrode Name
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Kastner committed Jun 6, 2019
1 parent 28c9a81 commit c15eadb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Packages/IPNWB
15 changes: 3 additions & 12 deletions Packages/Testing-MIES/UTF_TestNWBExportV2.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -299,20 +299,11 @@ static Function TestTimeSeries(fileID, device, groupID, channel, sweep, pxpSweep
endif
CHECK_EQUAL_STR(stimulus, stimulus_expected)

/// @todo NEEDS HDF5 XOP support for reading link targets
// electrode_name, only present for associated channels
if(IsFinite(params.electrodeNumber))

if(params.channelType == ITC_XOP_CHANNEL_TYPE_ADC)
path = "/acquisition/" + channel + "/electrode"
elseif(params.channelType == ITC_XOP_CHANNEL_TYPE_DAC)
path = "/stimulus/presentation/" + channel + "/electrode"
endif

HDF5Dump/Q/P=home/L=path "HardwareTests.nwb"
SplitString/E="LINKTARGET[[:space:]]\"(.*)\"" S_HDF5Dump, str
electrode_name = RemovePrefix(str, startStr = "/general/intracellular_ephys/")
electrode_name_ref = "electrode_" + num2str(params.electrodeNumber)
PathInfo home
electrode_name = IPNWB#ReadElectrodeName(S_path + "HardwareTests.nwb", channel, NWB_VERSION)
electrode_name_ref = num2str(params.electrodeNumber)
CHECK_EQUAL_STR(electrode_name, electrode_name_ref)
endif

Expand Down

0 comments on commit c15eadb

Please sign in to comment.