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

Unable to query dss_python version #32

Closed
kdheepak opened this issue Aug 20, 2018 · 3 comments · Fixed by #41
Closed

Unable to query dss_python version #32

kdheepak opened this issue Aug 20, 2018 · 3 comments · Fixed by #41
Assignees

Comments

@kdheepak
Copy link
Member

I'm submitting a ...

  • feature request

  • OpenDSSDirect.py version number: v0.3.4

Feature Request

We would like to be able to do the following

import opendssdirect as dss
print(dss.dss_lib.__version__)
@kdheepak kdheepak self-assigned this Aug 20, 2018
@kdheepak
Copy link
Member Author

This feature will be available when dss_python>=v0.10.0 is available.

@PMeira
Copy link
Member

PMeira commented Aug 20, 2018

That's directly the lower-level CFFI lib.
We can leave a reference to the full dss_python module though.

I'll try to add a proper version in the Pascal function too (https://github.com/PMeira/dss_capi/blob/master/src/v7/CAPI_DSS.pas#L48).

@kdheepak
Copy link
Member Author

Yes you are right.

dss._utils.dss_py.__version__

When this is available, we want to expose it in a nicer manner in OpenDSSDirect.py. We can add a function that prints the version number of dss_python, dss_capi and electricdss-src. We don't even necessarily need a version number for the dss_capi and electricdss-src if we can get the commit hash or git-tree hash that was used to build the package.

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

Successfully merging a pull request may close this issue.

2 participants