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

[Documentation]: Show how to use dandi config when calling nwbinspector library #554

Open
2 tasks done
rly opened this issue Jan 28, 2025 · 1 comment
Open
2 tasks done
Labels
topic: docs issues related to documentation

Comments

@rly
Copy link
Contributor

rly commented Jan 28, 2025

What would you like changed or added to the documentation and why?

The docs page for using the nwbinspector library does not show how to run the inspector with the internal DANDI config. I think that would be useful. After some digging, I believe it is just:

from nwbinspector import inspect_nwbfile, load_config

dandi_config = load_config("dandi")
messages = list(inspect_nwbfile(nwbfile_path=nwb_path, config=dandi_config))

But let me know if I am missing something or there is an easier way.

Do you have any interest in helping write or edit the documentation?

Yes.

Code of Conduct

@rly rly added the topic: docs issues related to documentation label Jan 28, 2025
@stephprince
Copy link
Contributor

That is the easiest approach that I am aware of. The other option is using the CLI where it would be:

nwbinspector nwb_path --config dandi

I agree it would be great to add that information to the documentation, including an explanation of when to use the dandi config and any important differences between the dandi config and the default.

Related issue: #360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: docs issues related to documentation
Projects
None yet
Development

No branches or pull requests

2 participants