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

Python/Numpy Module: __version__ Attribute #61

Closed
ax3l opened this issue Feb 17, 2016 · 3 comments
Closed

Python/Numpy Module: __version__ Attribute #61

ax3l opened this issue Feb 17, 2016 · 3 comments

Comments

@ax3l
Copy link
Contributor

ax3l commented Feb 17, 2016

@yyalli first of all thank you for the many and great updates in the last months! ✨

It would be fantastic if a adios.__version__ attribute would be supported.
This version represents the version of the ADIOS Python module, so currently 1.9.1b6 (not the version of the ADIOS release, currently 1.9.0, nor the version of ADIOS used to write a specific file).

Defined in PEP0396 for modules (also briefly mentioned in PEP8).

Examples:

import numpy as np
import h5py as h5
import adios

print(np.__version__)
print(h5.__version__)
# print(adios.__version__) # not implemented

# my current work-around
import pkg_resources;
print(pkg_resources.get_distribution('adios').version)
@jychoi-hpc
Copy link
Member

Great suggestion. I will work on this soon.

@jychoi-hpc
Copy link
Member

As of 1.9.1b7 release, I have added the version info (version).

@ax3l
Copy link
Contributor Author

ax3l commented Mar 9, 2016

Thank you very much, that is great! ✨

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

2 participants