Skip to content

Commit

Permalink
fix: Moving plexos configuration outside of config and better logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
pesap committed Sep 17, 2024
1 parent 333bfd5 commit 3e6e127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions src/r2x/defaults/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,34 +251,6 @@
"Regulation": 1200,
"Spinning": 300
},
"reserve_type_values": {
"Flexibility": 1,
"Regulation": 3,
"Spinning": 1,
"regulation_down": 4
},
"reserve_types": {
"1": {
"direction": "UP",
"type": "SPINNING"
},
"2": {
"direction": "DOWN",
"type": "SPINNING"
},
"3": {
"direction": "UP",
"type": "REGULATION"
},
"4": {
"direction": "DOWN",
"type": "REGULATION"
},
"default": {
"direction": "UP",
"type": "SPINNING"
}
},
"reserve_vors": {
"Flexibility": 390000,
"Regulation": 410000,
Expand Down
4 changes: 2 additions & 2 deletions src/r2x/parser/plexos.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def _construct_generators(self):

mapped_records = self._set_unit_availability(mapped_records)
if mapped_records is None:
logger.warning("Skipping generator {}. Could not set availability ", generator_name)
logger.debug("Skipping disabled generator {}", generator_name)
# When unit availability is not set, we skip the generator
continue

Expand Down Expand Up @@ -748,7 +748,7 @@ def _construct_batteries(self):
def _add_buses_to_batteries(self):
batteries = [battery["name"] for battery in self.system.to_records(GenericBattery)]
if not batteries:
msg = "No battery objects found on the system. Skipping adding membership to buses."
msg = "No battery objects found on the system. Skipping adding membership to buses"
logger.warning(msg)
return
generator_memberships = self.db.get_memberships(
Expand Down

0 comments on commit 3e6e127

Please sign in to comment.