DSS Python 0.10.3
Version 0.10.3 has been released on the official Python package repository (PyPI) and Anaconda cloud (channel PMeira) on 2019-05-22.
This is the last release to provide pre-built binaries for Python 3.4.
Installation
Install it with conda (available for Python versions 3.5, 3.6, 3.7 for all platforms, 2.7 also included for Windows):
conda install -c pmeira dss_python
Or using pip (Python versions: 2.7, 3.4, 3.5, 3.6, 3.7):
pip install dss_python
Relevant changes
From the changelog:
- Includes fix for issue with the line parameters on Linux and macOS due to memory-address aliasing issues.
- Prebuilt binaries for DSS C-API and KLUSolve are used instead of rebuilding everything from source.
- Prebuilt packages (wheels) for 32-bit Linux are now available.
- Development artifacts are now included in the distribution package. This enables advanced usage and easier integration with compiled languages (examples pending, please open an issue if you'd like to know more).
ReduceCkt
ported from COM: new circuit reduction methods available inDSS.ActiveCircuit.ReduceCkt
Lines
: ported from COM, new seasonal ratings mechanism that allows changing the current rating through the simulation- Optimization and extended error-checking in many properties
- Includes new
Settings.LoadsTerminalCheck
: on static scenarios (no open terminals for loads) to toggle the costly checks for open terminals. If set to false, it can save around 25% of simulation time, depending on the circuit characteristics. - All components now can be accessed by index (
idx
property) - All components now have faster
Name
iteration - Ported to v7/default interface: the DSS commands
CalcIncMatrix
,CalcIncMatrix_O
,Refine_BusLevels
,CalcLaplacian
, and related export options:IncMatrix
,IncMatrixRows
,IncMatrixCols
,BusLevels
,Laplacian
,ZLL
,ZCC
,Contours
,Y4
. Also includes related Python-level properties. - Some other new properties:
CktElement.IsIsolated
Lines.IsSwitch
Transformers.LossesByType
andTransformers.AllLossesByType
Also check the changelog for DSS C-API at https://github.com/dss-extensions/dss_capi/blob/master/docs/changelog.md#version-0103
Reminder: mixed-case handling
If you were using use_com_compat
to allow mixed-cased attributes, it should work better than before. You may now use use_com_compat(warn=True)
to warn when you use an attribute that wouldn't exist without calling use_com_compat
. The intention is that the user should run their code to get a list of warnings, fix it, and then remove use_com_compat
since it does have a small performance impact.