Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ephys NWB "Shapes do not match" error in feature extraction #404

Closed
wbwakeman opened this issue Apr 21, 2020 · 1 comment
Closed

Ephys NWB "Shapes do not match" error in feature extraction #404

wbwakeman opened this issue Apr 21, 2020 · 1 comment
Assignees
Labels

Comments

@wbwakeman
Copy link

Running ipfx feature extraction on ephys data for June about 90% fail with this error:

Traceback (most recent call last):
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/ipfx/bin/run_pipeline_from_nwb_file.py", line 59, in <module>
    main()
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/ipfx/bin/run_pipeline_from_nwb_file.py", line 53, in main
    pipeline_input["manual_sweep_states"])
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/ipfx/bin/run_pipeline.py", line 59, in run_pipeline
    se_output['cell_features'],
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/ipfx/bin/run_feature_extraction.py", line 74, in run_feature_extraction
    output_nwb_path=output_nwb_file)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/ipfx/nwb_append.py", line 61, in append_spike_times
    nwb_io.write(nwbfile)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/utils.py", line 483, in func_call
    return func(args[0], **parsed['args'])
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/backends/hdf5/h5tools.py", line 297, in write
    ns_builder.export('namespace', writer=writer)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/utils.py", line 483, in func_call
    return func(args[0], **parsed['args'])
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/spec/write.py", line 213, in export
    writer.write_spec(out, path)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/backends/hdf5/h5_utils.py", line 280, in write_spec
    return self.__write(spec, path)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/hdmf/backends/hdf5/h5_utils.py", line 276, in __write
    dset = self.__group.require_dataset(name, shape=tuple(), data=data, dtype=self.__str_type)
  File "/allen/aibs/technology/waynew/conda/ipfx37_dev/lib/python3.7/site-packages/h5py/_hl/group.py", line 198, in require_dataset
    raise TypeError("Shapes do not match (existing %s vs new %s)" % (dset.shape, shape))
TypeError: Shapes do not match (existing (1,) vs new ())

Running this with a test file at:
/allen/aibs/technology/waynew/ephys/features/troubleshoot_392647.05.02.01/dev.pbs

@MatthewAitken
Copy link
Member

created an issue here: NeurodataWithoutBorders/pynwb#1228

@wbwakeman wbwakeman reopened this May 5, 2020
@gnayuy gnayuy closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants