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

[Feature]: Always display warning on neurodata object construction if required properties are missing #663

Open
2 tasks done
ehennestad opened this issue Feb 3, 2025 · 0 comments

Comments

@ehennestad
Copy link
Collaborator

What would you like to see added to MatNWB?

At the moment, a warning is displayed when an object is created without required properties, but only if the object is displayed, not when the object display is suppressed by a semicolon (see example below).

This should be improved so that the warning is always shown:
#655 (comment)

>> types.core.IntracellularElectrode()

ans = 

  IntracellularElectrode with properties:

                  description: ''
                       device: []
                      cell_id: ''
                    filtering: ''
    initial_access_resistance: ''
                     location: ''
                   resistance: ''
                         seal: ''
                        slice: ''

Warning: The following required properties are missing for instance for type "types.core.IntracellularElectrode":
    description
    device 
>> ielectrode = types.core.IntracellularElectrode();
>> 

Is your feature request related to a problem?

No response

What solution would you like?

See above

Do you have any interest in helping implement the feature?

Yes.

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant