Skip to content

Commit

Permalink
SWLS resonant converter name correction for reading variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriomarcondeli committed Oct 18, 2023
1 parent d8b2b67 commit a7ce475
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.3.1] - 2023-10-18
### Changed:
- SWLS resonant converter name correction for reading variables

## [2.3.0] - 2023-05-09
### Changed:
- SWLS resonant converter BSMP specification, including new variables, alarms and interlocks
Expand Down
4 changes: 2 additions & 2 deletions src/pydrs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .pydrs import EthDRS, GenericDRS, SerialDRS # noqa: F401

__version__ = "2.3.0"
__date__ = "09/05/2023"
__version__ = "2.3.1"
__date__ = "18/10/2023"
2 changes: 1 addition & 1 deletion src/pydrs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ def read_vars_common(self, vals: bytes = None) -> dict:
vars_dict["ps_setpoint"] = vars_dict["ps_setpoint"][:-1] + "V"
vars_dict["ps_reference"] = vars_dict["ps_reference"][:-1] + "V"
else:
if (vars_dict["status"]["model"] == "RESONANT_SWLS"):
if (vars_dict["status"]["model"] == "SWLS_RESONANT_CONVERTER"):
vars_dict["ps_setpoint"] = vars_dict["ps_setpoint"][:-1] + "Hz"
vars_dict["ps_reference"] = vars_dict["ps_reference"][:-1] + "Hz"
else:
Expand Down
2 changes: 1 addition & 1 deletion src/pydrs/consts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"FAP_IMAS",
"FAC_2P_ACDC_IMAS",
"FAC_2P_DCDC_IMAS",
"RESONANT_SWLS",
"SWLS_RESONANT_CONVERTER",
"Invalid",
"Invalid",
"Invalid",
Expand Down

0 comments on commit a7ce475

Please sign in to comment.