You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an np.ndarray is added in scratch with nwbfile.add_scratch(ndarray,name='some_name') without a notes argument, ScratchData is created with notes = None and fails with TypeError: ScratchData.__init__: incorrect type for 'notes' (got 'NoneType', expected 'str')
Description
If an
np.ndarray
is added in scratch withnwbfile.add_scratch(ndarray,name='some_name'
) without anotes
argument,ScratchData
is created withnotes = None
and fails withTypeError: ScratchData.__init__: incorrect type for 'notes' (got 'NoneType', expected 'str')
Adding something like this before https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/src/pynwb/file.py#L695 should fix it.
Steps to Reproduce
Environment
Checklist
The text was updated successfully, but these errors were encountered: