Skip to content

Investigate strange HDMF error during NWB Units stage #297

Description

@CodyCBakerPhD
Command error:
  WARNING: While bind mounting '/orcd/data/dandi/001:/orcd/data/dandi/001': destination is already in the mount point list
  Cloning into 'capsule-repo'...
  + python -u run_capsule.py
  /opt/conda/lib/python3.11/site-packages/aind_nwb_utils/utils.py:1085: UserWarning: Session and rig metadata are both required.
    warnings.warn("Session and rig metadata are both required.")
  Traceback (most recent call last):
    File "capsule/code/run_capsule.py", line 553, in <module>
      append_io.write(nwbfile)
    File "/opt/conda/lib/python3.11/site-packages/hdmf/utils.py", line 668, in func_call
      return func(args[0], **pargs)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 395, in write
      super().write(**kwargs)
    File "/opt/conda/lib/python3.11/site-packages/hdmf/utils.py", line 668, in func_call
      return func(args[0], **pargs)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/io.py", line 99, in write
      self.write_builder(f_builder, **kwargs)
    File "/opt/conda/lib/python3.11/site-packages/hdmf/utils.py", line 668, in func_call
      return func(args[0], **pargs)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 842, in write_builder
      self.write_group(self.__file, gbldr, **kwargs)
    File "/opt/conda/lib/python3.11/site-packages/hdmf/utils.py", line 668, in func_call
      return func(args[0], **pargs)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 1029, in write_group
      self.write_dataset(group, sub_builder, **kwargs)
    File "/opt/conda/lib/python3.11/site-packages/hdmf/utils.py", line 668, in func_call
      return func(args[0], **pargs)
             ^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 1334, in write_dataset
      dset = self.__list_fill__(parent, name, data, options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 1500, in __list_fill__
      raise e
    File "/opt/conda/lib/python3.11/site-packages/hdmf/backends/hdf5/h5tools.py", line 1498, in __list_fill__
      dset[:] = data
      ~~~~^^^
    File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
    File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
    File "/opt/conda/lib/python3.11/site-packages/h5py/_hl/dataset.py", line 1002, in __setitem__
      val = numpy.asarray(val, order='C', dtype=dt)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (618,) + inhomogeneous part.

Example: https://dandiarchive.org/dandiset/001697/draft/files?location=derivatives/dandiset-000409/sub-KS051/sub-KS051_ses-7082d8ff-255a-47d7-a839-bf093483ec30_desc-raw_ecephys/pipeline-aind%2Bephys/version-v1.2.4_codebase-v0.3.46_params-1cbdbee_config-7940dfd_attempt-1&page=1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions