Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In dandiset 000776, the data is invalid against the spec. See https://github.com/dandi/helpdesk/issues/126 | |
# To fix the files in dandiset 000776, run this script on dandihub. This script performs the following data surgery | |
# steps: | |
# | |
# 1. Replace the "order_optical_channels" link from all `ImagingVolume` objects with a subgroup | |
# that is the link target (at /processing/NeuroPAL/OpticalChannelRefs) | |
# 2. Add the "ndx-multichannel-volume" version 0.1.12 schema | |
# 3. Remove the "ndx-multichannel-volume" version 0.1.9 schema | |
# 4. Remove the "order_optical_channels" group from all "MultiChannelVolume" objects | |
# 5. Remove the "OpticalChannelRefs" group within "/processing" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import h5py | |
import argparse | |
from typing import Union | |
def replace_namespace(_: str, h5obj: Union[h5py.Dataset, h5py.Group]): | |
# change the attribute "namespace" from value "hdmf-experimental" to "hdmf-common" | |
# for all DynamicTableRegion and VectorData neurodata types from ndx-photometry. | |
if h5obj.attrs.get("namespace") == "hdmf-experimental": |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder