MIES icon indicating copy to clipboard operation
MIES copied to clipboard

NWB Export with multiple devices issue

Open t-b opened this issue 4 years ago • 3 comments

PXP and NWBv2: mies-igor.zip

The PXP has data from two devices each 1 sweep from HS0.

Looking at the data with the HDF5 Browser

grafik

and the dump output

   SOFTLINK "electrode" {
      LINKTARGET "/general/intracellular_ephys/electrode_0"
   }

...

   SOFTLINK "electrode" {
      LINKTARGET "/general/intracellular_ephys/electrode_0"
   }

shows that both AD timeseries are linked to the same electrode and therefore to the same device. This is because as they use the same headstage number (electrode in NWB lingua) and we did not thought about that we need one NWB electrode for each device.

This bug is present in NWBv1 although less severe there because we also store the device name in the source attribute.

t-b avatar Jun 11 '21 14:06 t-b

If devices are running different experiments, then create two NWB files. If yoking, then a single NWB is preferred.

timjarsky avatar Dec 09 '22 21:12 timjarsky

@timjarsky The proposed solution here is always creating separate files, one per device. (See above comment). But #2127 proposes to adjust the NWB naming scheme to also allow data from multiple devices in one NWB file. And this would mean we would have to support data from multiple devices in one NWB file anyway. Is that correct?

t-b avatar Jul 31 '24 16:07 t-b

Decided today: We only want to have data from one device in a NWB file.

t-b avatar Jul 31 '24 18:07 t-b