Currently, when the input is NWB the recording has not probe attached to it (just locations), so the code makes a dummy probe and creates the default Device. Instead, we should load the device name associated to the ElectricalSeries through the ElectrodeGroup and use that device for the NWB export of LFP and Units.
Since in-memory probes are not propagated to JSON dump, a solution could be to add an optional probegroup field to the job json files and instantiate + attach the probe if present. Then the job dispatch will be in charge of making the probe and using the correct metadata form the device.
Currently, when the input is NWB the recording has not probe attached to it (just locations), so the code makes a dummy probe and creates the default
Device. Instead, we should load the device name associated to the ElectricalSeries through the ElectrodeGroup and use that device for the NWB export of LFP and Units.Since in-memory probes are not propagated to JSON dump, a solution could be to add an optional
probegroupfield to the job json files and instantiate + attach the probe if present. Then the job dispatch will be in charge of making the probe and using the correct metadata form the device.