Skip to content

Commit d31f93d

Browse files
committed
enums: new flag DSSCompatFlags.PermissiveProperties
1 parent c07c8e2 commit d31f93d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

dss_python_backend/enums.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,19 @@ class DSSCompatFlags(IntFlag):
460460
It is not always apparent and does not always affect the end results.
461461
"""
462462

463+
PermissiveProperties = 0x00000200
464+
"""
465+
Starting AltDSS/DSS C-API v0.15.0, the way some properties are handled has been tweaked to try to provide a better experience for general users.
466+
467+
- The arrays provided in the text interface, scripts or the Alt APIs are required to match the provided sizes. For example, if a LoadShape has `NPts` set to 12 and the user provides 24 values for `PMult`, an error is generated.
468+
469+
- Some properties in Transformer and AutoTrans that previously silently replaced zeros with default values now error.
470+
471+
- Some properties are read-only, but previously silent ignored input values. Errors are now generated if the user tries to set them. This includes some properties that are read-only on certain conditions. For example, if a SwtControl is locked, its state cannot be set.
472+
473+
Set this compatibility flag to silently ignore the errors listed above and restore the original behavior.
474+
"""
475+
463476

464477
class AltDSSEvent(IntEnum):
465478
"""

0 commit comments

Comments
 (0)