Released on 2018-11-17.
Major changes:
- The creation of the binary modules has been automated using Travis-CI and AppVeyor. We expect that this will allow us to release more often, bringing new features sooner.
- Integrates many fixes from the upstream OpenDSS and changes specific to DSS C-API.
- Reorganizes and reuses the code across DSS versions (v7 and v8)
- Uses `__slots__` to simplify attribute handling.
- Exposes both the our classic API (e.g. `dss.v7.DSS_IR` for the immediate/direct results) and global result API (e.g. `dss.v7.DSS_GR` for the global result interface). See [DSS C-API's docs](https://github.com/dss-extensions/dss_capi/blob/master/docs/usage.md) for a detailed explanation. We default to the GR interface since it will generally be faster at the cost of a small memory overhead.
- Although still experimental, the v8/PM module is more stable. If you try it, please give feedback.
- Error checking is now done for most API writes. That is, if a an OpenDSS error occurs, it should cause a Python exception soon after. Previously, you need to call `_check_for_error()` manually to trigger this. This change was introduced after user reports indicated that manually checking for errors is a common behavior.
- Exposes API extensions for the classes `LineGeometry`, `WireData`, `LineSpacing`, `CNData`, `TSData`, `Reactor`.
- Makes most DSS classes iterable (including buses), e.g. you can now use:
python
for l in DSS.ActiveCircuit.Loads:
print(l.Name)
- Adds a COM patching function (`dss.patch_dss_com`) — that is, extend the COM instance with iterators like above and some other few functions to make it easier to exchange between COM and DSS-Python:
python
import win32com.client, dss
com = dss.patch_dss_com(win32com.client.gencache.EnsureDispatch("OpenDSSEngine.DSS"))
...compile a circuit, etc.
for l in com.ActiveCircuit.Loads:
print(l.Name, l.kva)
for b in com.ActiveCircuit.ActiveBus:
print(b.Name, b.x, b.y)
0.9.x
Sorry, we didn't track the changes at the time. Check the Git logs below plus the related changes under DSS C-API.