You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-5Lines changed: 48 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,17 @@ See also the other projects from [DSS-Extensions.org](https://dss-extensions.org
13
13
-[DSS Sharp](http://github.com/dss-extensions/dss_sharp/): available for .NET/C#, also mimics the COM classes, but Windows-only at the moment. Soon it will be possible to use it via COM too.
14
14
-[DSS MATLAB](http://github.com/dss-extensions/dss_matlab/): presents multi-platform integration (Windows, Linux, MacOS) with DSS C-API and is also very compatible with the COM classes.
15
15
16
-
Version 0.10.5, based on OpenDSS revision 2837 (which is slightly newer than OpenDSS v8.6.7.1). While we plan to add a lot more funcionality into DSS Python, the main goal of creating a COM-compatible API has been reached. If you find an unexpected missing feature, please report it!
16
+
Version 0.10.6, based on OpenDSS revision 2909 (around OpenDSS v9.0.0.3). While we plan to add a lot more funcionality into DSS Python, the main goal of creating a COM-compatible API has been reached. If you find an unexpected missing feature, please report it!
17
17
18
18
This module mimics the COM structure (as exposed via `win32com` or `comtypes`), effectively enabling multi-platform compatibility at Python level.
19
19
Most of the COM documentation can be used as-is, but instead of returning tuples or lists, this modules returns/accepts NumPy arrays for numeric data exchange.
20
20
21
21
The module depends on CFFI, NumPy and, optionally, SciPy.Sparse for reading the sparse system admittance matrix.
22
22
23
-
## Recent changes
24
-
25
-
Check the [changelog](docs/changelog.md#0105) document for a detailed list.
23
+
## Brief release history
26
24
27
-
-*2020-03-03 / version 0.10.5: Maintenance release to match DSS C-API 0.10.5, basedon on OpenDSS revision 2837. Temporarily drops the v8 parallel-machine functions, as well as conda packages on Windows.*
25
+
-**2020-07-31 / version 0.10.6: Maintenance release to match DSS C-API 0.10.6, based on on OpenDSS revision 2909. New important settings: `DSS.LegacyModels` and `DSS.Error.ExtendedErrors`.**
26
+
- 2020-03-03 / version 0.10.5: Maintenance release to match DSS C-API 0.10.5, based on on OpenDSS revision 2837. Temporarily drops the v8 parallel-machine functions, as well as conda packages on Windows.
28
27
- 2019-11-16 / version 0.10.4: Maintenance release to match DSS C-API 0.10.4.
29
28
- 2019-05-22 / version 0.10.3: Some important fixes, better general performance, new API extensions, new features ported from COM and the OpenDSS version 8 codebase.
30
29
- 2019-02-28 / version 0.10.2: Some small fixes, adds the missing `CtrlQueue.Push`, faster LoadShapes and new property `DSS.AllowEditor` to toggle editor calls.
@@ -38,6 +37,50 @@ Check the [changelog](docs/changelog.md#0105) document for a detailed list.
38
37
- 2018-02-12 / version 0.9.2: Experimental support for OpenDSS-PM (at the moment, a custom patch is provided for FreePascal support) and port COM interface fixes (OpenDSS revision 2134)
39
38
- 2018-02-08 / version 0.9.1: First public release (OpenDSS revision 2123)
40
39
40
+
## Recent changes
41
+
42
+
**Changes in 0.10.6, since 0.10.5**
43
+
44
+
Check the [changelog](docs/changelog.md#0105) document for a detailed list for all releases.
45
+
46
+
- Updated to DSS C-API 0.10.6, which includes most changes up to OpenDSS v9.0.0.3.
47
+
- Debug builds of DSS C-API are now included. See the [Debugging](https://github.com/dss-extensions/dss_capi/blob/0.10.x/docs/debug.md) document.
48
+
- New `DSS.LegacyModels`: allow using the legacy/deprecated models for `PVsystem`, `Storage`, `InvControl`, and `StorageController`.
49
+
- New `DSS.Error.ExtendedErrors`: controls if the new extended error messages are used.
50
+
- Many new properties and functions in `DSS.ActiveCircuit.PDElements`.
51
+
- Now most of the low-level API calls are checked, mapping the errors from the `DSS.Error` interface to Python exceptions more frequently.
52
+
53
+
DSS C-API 0.10.6 changes:
54
+
55
+
- This version should be fully API compatible with 0.10.3+. The behavior of some functions changed with the new extensions. Especially, empty strings are explicitely return as nulls instead of "\0". This conforms to the behavior already seen in arrays of strings.
56
+
- The binary releases now use Free Pascal 3.2.0. We observed the solution process is around 6% faster, and results are even closer to the official OpenDSS.
57
+
- The releases now include both the optimized/default binary and a non-optimized/debug version. See the [Debugging](https://github.com/dss-extensions/dss_capi/blob/0.10.x/docs/debug.md) document for more.
58
+
- Extended API validation and **Extended Errors** mechanism:
59
+
- The whole API was reviewed to add basic checks for active circuit and element access.
60
+
- By default, invalid accesses now result in errors reported through the Error interface. This can be disabled to achieve the previous behavior, more compatible with the official COM implementation -- that is, ignore the error, just return a default/invalid value and assume the user has handled it.
61
+
- The mechanism can be toggled by API functions `DSS_Set_ExtendedErrors` and `DSS_Get_ExtendedErrors`, or environment variable `DSS_CAPI_EXTENDED_ERRORS=0` to disable (defaults to enabled state).
62
+
- New **Legacy Models** mechanism:
63
+
- OpenDSS 9.0+ dropped the old `PVsystem`, `Storage`, `InvControl`, and `StorageController` models, replacing with the new versions previously known as `PVsystem2`, `Storage2`, `InvControl2` and `StorageController2`.
64
+
- The behavior and parameters from the new models are different -- they are better, more complete and versatile models. Check the official OpenDSS docs and examples for further information.
65
+
- The implementation of the new models in DSS C-API was validated successfully with all test cases available. As such, we mirror the decision to make them the default models.
66
+
- As an extension, we implemented the Legacy Models option. By toggling it, a `clear` command will be issued and the alternative models will be loaded. This should allow users to migrate to the new version but, if something that used to work with the old models stopped working somehow, the user can toggle the old models. The idea is to keep reproducibility of results while we keep updating the engine and the API.
67
+
- Since EPRI dropped/deprecated the old models, we might drop them too, in a future release. Please open an issue on GitHub or send a message if those old models are important to you.
68
+
- The mechanism can be controlled by API functions `DSS_Set_LegacyModels` and `DSS_Get_LegacyModels`, or environment variable `DSS_CAPI_LEGACY_MODELS=1` to enable (defaults to disabled state).
69
+
- WireData API: expose the `CapRadius` property as a new pair of functions.
70
+
- PDElements API: extended with many batch functions exposing equivalents to some CSV reports: `AllNames`, `AllMaxCurrents`, `AllPctNorm`, `AllPctEmerg`, `AllCurrents`, `AllCurrentsMagAng`, `AllCplxSeqCurrents`, `AllSeqCurrents`, `AllPowers`, `AllSeqPowers`, `AllNumPhases`, `AllNumConductors`, `AllNumTerminals`.
71
+
-`CktElement_Get_SeqPowers`: fix issue for positive sequence circuits (wrong results could corrupt memory).
72
+
- Many API functions were optimized to avoid unnecessary allocations and copies.
73
+
- Some bugs found in DSS C-API and also reported upstream (already fixed in SVN):
74
+
-`CapRadius` DSS property: if the radius was initialized using `GMRac`, `CapRadius` was left uninitialized, resulting in invalid/NaN values.
75
+
-`Sensors` API: some functions edited capacitors instead of sensors.
76
+
- Updated to the official OpenDSS revision 2903, corresponding to versions 9.0.0+. Changes include:
77
+
- ExportCIMXML: updated.
78
+
- Relay: Fix in `GetPropertyValue`.
79
+
- Line: In `DumpProperties` and `MakePosSequence`, the length is handled differently for lines with `LineGeometry` or `LineSpacing`.
80
+
- Bus API: new `LineList`, `LoadList` functions.
81
+
- Lines API: SeasonRating now returns NormAmps if there's no SeasonSignal.
82
+
- New command DSS `Zsc012`: "Returns symmetrical component short circuit impedances Z0, Z1, and Z2 for the ACTIVE 3-PHASE BUS. Determined from Zsc matrix."
83
+
-`PVsystem2`, `Storage2`, `InvControl2`, `StorageController2` updated and renamed.
Copy file name to clipboardExpand all lines: docs/changelog.md
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,45 @@
1
+
# 0.10.6
2
+
3
+
- Updated to DSS C-API 0.10.6, which includes most changes up to OpenDSS v9.0.0.3.
4
+
- Debug builds of DSS C-API are now included. See the [Debugging](https://github.com/dss-extensions/dss_capi/blob/0.10.x/docs/debug.md) document.
5
+
- New `DSS.LegacyModels`: allow using the legacy/deprecated models for `PVsystem`, `Storage`, `InvControl`, and `StorageController`.
6
+
- New `DSS.Error.ExtendedErrors`: controls if the new extended error messages are used.
7
+
- Many new properties and functions in `DSS.ActiveCircuit.PDElements`.
8
+
- Now most of the low-level API calls are checked, mapping the errors from the `DSS.Error` interface to Python exceptions more frequently.
9
+
10
+
DSS C-API 0.10.6 changes:
11
+
12
+
- This version should be fully API compatible with 0.10.3+. The behavior of some functions changed with the new extensions. Especially, empty strings are explicitely return as nulls instead of "\0". This conforms to the behavior already seen in arrays of strings.
13
+
- The binary releases now use Free Pascal 3.2.0. We observed the solution process is around 6% faster, and results are even closer to the official OpenDSS.
14
+
- The releases now include both the optimized/default binary and a non-optimized/debug version. See the [Debugging](https://github.com/dss-extensions/dss_capi/blob/0.10.x/docs/debug.md) document for more.
15
+
- Extended API validation and **Extended Errors** mechanism:
16
+
- The whole API was reviewed to add basic checks for active circuit and element access.
17
+
- By default, invalid accesses now result in errors reported through the Error interface. This can be disabled to achieve the previous behavior, more compatible with the official COM implementation -- that is, ignore the error, just return a default/invalid value and assume the user has handled it.
18
+
- The mechanism can be toggled by API functions `DSS_Set_ExtendedErrors` and `DSS_Get_ExtendedErrors`, or environment variable `DSS_CAPI_EXTENDED_ERRORS=0` to disable (defaults to enabled state).
19
+
- New **Legacy Models** mechanism:
20
+
- OpenDSS 9.0+ dropped the old `PVsystem`, `Storage`, `InvControl`, and `StorageController` models, replacing with the new versions previously known as `PVsystem2`, `Storage2`, `InvControl2` and `StorageController2`.
21
+
- The behavior and parameters from the new models are different -- they are better, more complete and versatile models. Check the official OpenDSS docs and examples for further information.
22
+
- The implementation of the new models in DSS C-API was validated successfully with all test cases available. As such, we mirror the decision to make them the default models.
23
+
- As an extension, we implemented the Legacy Models option. By toggling it, a `clear` command will be issued and the alternative models will be loaded. This should allow users to migrate to the new version but, if something that used to work with the old models stopped working somehow, the user can toggle the old models. The idea is to keep reproducibility of results while we keep updating the engine and the API.
24
+
- Since EPRI dropped/deprecated the old models, we might drop them too, in a future release. Please open an issue on GitHub or send a message if those old models are important to you.
25
+
- The mechanism can be controlled by API functions `DSS_Set_LegacyModels` and `DSS_Get_LegacyModels`, or environment variable `DSS_CAPI_LEGACY_MODELS=1` to enable (defaults to disabled state).
26
+
- WireData API: expose the `CapRadius` property as a new pair of functions.
27
+
- PDElements API: extended with many batch functions exposing equivalents to some CSV reports: `AllNames`, `AllMaxCurrents`, `AllPctNorm`, `AllPctEmerg`, `AllCurrents`, `AllCurrentsMagAng`, `AllCplxSeqCurrents`, `AllSeqCurrents`, `AllPowers`, `AllSeqPowers`, `AllNumPhases`, `AllNumConductors`, `AllNumTerminals`.
28
+
-`CktElement_Get_SeqPowers`: fix issue for positive sequence circuits (wrong results could corrupt memory).
29
+
- Many API functions were optimized to avoid unnecessary allocations and copies.
30
+
- Some bugs found in DSS C-API and also reported upstream (already fixed in SVN):
31
+
-`CapRadius` DSS property: if the radius was initialized using `GMRac`, `CapRadius` was left uninitialized, resulting in invalid/NaN values.
32
+
-`Sensors` API: some functions edited capacitors instead of sensors.
33
+
- Updated to the official OpenDSS revision 2903, corresponding to versions 9.0.0+. Changes include:
34
+
- ExportCIMXML: updated.
35
+
- Relay: Fix in `GetPropertyValue`.
36
+
- Line: In `DumpProperties` and `MakePosSequence`, the length is handled differently for lines with `LineGeometry` or `LineSpacing`.
37
+
- Bus API: new `LineList`, `LoadList` functions.
38
+
- Lines API: SeasonRating now returns NormAmps if there's no SeasonSignal.
39
+
- New command DSS `Zsc012`: "Returns symmetrical component short circuit impedances Z0, Z1, and Z2 for the ACTIVE 3-PHASE BUS. Determined from Zsc matrix."
40
+
-`PVsystem2`, `Storage2`, `InvControl2`, `StorageController2` updated and renamed.
41
+
42
+
1
43
# 0.10.5
2
44
3
45
Released on 2020-03-03. This is a maintenance release.
0 commit comments