catalystneuro / ndx-holographic-stimulation

The extension of OptogeneticSeries to include 3D geometrical stimulation pattern
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Cannot extend OptogeneticSeries to have 2D data #4

Open alessandratrapani opened 10 months ago

alessandratrapani commented 10 months ago

Extension specification: https://github.com/catalystneuro/ndx-holographic-stimulation/blob/82fba2b7763a06ad35563252e05171fed269c372/src/spec/create_extension_spec.py#L63-L77

When running test_example_usage(), it displays this error message:

ValueError: CustomClassGenerator.set_init.<locals>.__init__: incorrect shape for 'data' (got '(100, 12)', expected '(None,)')

It still expects the data shape of the OptogeneticSeries (None,), even if (None, None) was defined as the new data shape. Extending HolographicSeries from TimeSeries resolves the error.