-
Notifications
You must be signed in to change notification settings - Fork 22
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
Class iterators #78
Class iterators #78
Conversation
At the moment this would work for most classes: I need to test some other things to be sure everything planned in #55 can be done without issues. |
d6753b1
to
6cea0c2
Compare
In [1]: from opendssdirect import Loads
In [2]: import opendssdirect as odd
In [3]: odd.Text.Command('redirect ../electricdss-tst/Distrib/EPRITestCircuits/ckt5/Master_ckt5.dss')
In [4]: len(Loads)
Out[4]: 1379
In [5]: from opendssdirect.Loads import Name
In [6]: Name()
Out[6]: 'mdv201_hn_2_133_abc8083-1a3' This current version is almost there. The only change in the tests was changing the asserts for modules, since they're not anymore in the final names. The modules still exist though (as shown in A few modules like YMatrix and Monitors will still be migrated. After that, we can introduce DSS contexts without too much hassle. |
79768ce
to
4bb762e
Compare
Still needs some final clean-up (some The docs seem to be generated without issues already, I thought it would need more work. |
I have to rebase, document and update this. After that, this should be v0.9.0 |
Remaining steps:
|
18957cb
to
645bc76
Compare
… recent pytest versions. FPC uses exception, including Windows native exceptions, in ways that the fault handler doesn't like. This is normal and expected though, so we can disable the handler during import, when FPC's runtime is being initialized.
…port DSS enums in the main module.
This will enough to handle that (needs latest commits here and from DSS-Python): from opendssdirect import dss, enums as dss_enums
dss.Settings.SetPropertyNameStyle(dss_enums.DSSPropertyNameStyle.Legacy)
|
dafdfe1
to
ec9a4b1
Compare
This will probably need some fixes later on, but the basic package is built correctly.
…rties in ODD.py in the error message.
- Try to make it clearer that the `dss_lib` object is not intended for general usage. - Add more general info, recommendations, etc. - Move the multithreading example to a new notebook - Update links - New images
0caeeb6
to
76046c5
Compare
Extensive changes:
PyProject.toml
, withhatchling
andversioningit
instead ofsetuptools
Closes #55, closes #56, closes #60, closes #70, closes #103.