Skip to content

Commit

Permalink
Enums: update docstring for SkipNA; typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Feb 6, 2024
1 parent 93e5585 commit 636c02c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dss_python_backend/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ class GeneratorRegisters(IntEnum):

class SetterFlags(IntFlag):
"""
Setter flags customize down how the update of DSS properties are handled by the
Setter flags customize how the update of DSS properties are handled by the
engine and parts of the API. Use especially in the `Obj` and `Batch` APIs
"""

Expand All @@ -603,10 +603,10 @@ class SetterFlags(IntFlag):
"""
For batch operations with arrays, skip NA values
Currently, NA values are interpret as:
- NaN for float64
- INT32_MIN (0x80000000) for int32
- Null pointers for strings (in this case, use a `"\0"` string for empty strings)
Currently, NA values are interpreted as:
- NaN for `float64`
- INT32_MAX (0x7fffffff) for `int32`
- Null pointers for strings (in this case, use a `"\\0"` string for empty strings)
"""

AllowAllConductors = 0x80000000
Expand All @@ -627,8 +627,8 @@ class SetterFlags(IntFlag):
'CoreType',
'DSSCompatFlags',
'DSSJSONFlags',
'DSSSaveFlags',
'DSSPropertyNameStyle',
'DSSSaveFlags',
'EnergyMeterRegisters',
'GeneratorRegisters',
'GeneratorStatus',
Expand All @@ -642,8 +642,8 @@ class SetterFlags(IntFlag):
'SetterFlags',
'SolutionAlgorithms',
'SolutionLoadModels',
'StorageStates',
'SolveModes',
'SparseSolverOptions',
'StorageStates',
'YMatrixModes',
]

0 comments on commit 636c02c

Please sign in to comment.