We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Approach below are not exclusive
import ndx_my_extension from pynwb import load_namespaces load_namespaces(ndx_my_extension.namespace_filepath)
Instead of setting package_data, the spec files could be listed as data_files always installed under a directory called ndx_specs
package_data
data_files
ndx_specs
Add support for entrypoints allowing to automatically register the ndx python extension after its installation.
pynwb will need to be updated to support the following:
pnwb.list_registered_namespaces()
pynwb.load_registered_namespaces()
To support both cases: automatic loading and explicit loading of extension. The following could be done:
pip install pynwb[extension_autoload]
By installing the extra [extension_autoload], pynwb would load the namespace of all installed extensions on import.
[extension_autoload]
As first step, I suggest to go with (1), it will:
The text was updated successfully, but these errors were encountered:
@ajtritt @rly thoughts?
Sorry, something went wrong.
I also like starting with option 1. Even better if we have a function load_extension(package_name).
load_extension(package_name)
rly
ajtritt
oruebel
No branches or pull requests
Approach below are not exclusive
(1) Use namespace filepath returned by extension python package
(2) systematic installation of spec files as datafiles
Instead of setting
package_data
, the spec files could be listed asdata_files
always installed under a directory calledndx_specs
(3) Use entrypoint to register extensions
Add support for entrypoints allowing to automatically register the ndx python extension after its installation.
pynwb will need to be updated to support the following:
pnwb.list_registered_namespaces()
)pynwb.load_registered_namespaces()
automatic loading of registered namespaces on import. Do we want that ?
To support both cases: automatic loading and explicit loading of extension. The following could be done:
By installing the extra
[extension_autoload]
, pynwb would load the namespace of all installed extensions on import.suggested path forward
As first step, I suggest to go with (1), it will:
The text was updated successfully, but these errors were encountered: