Skip to content

Commit

Permalink
fix formatting, bump min python to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Jan 7, 2025
1 parent 0f98b0b commit dbc3978
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 518 deletions.
4 changes: 2 additions & 2 deletions alfalfa_worker/jobs/openstudio/step_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def add_additional_meter(fuel: str, units: str, converter: Callable[[float], flo
self.variables.points[id]["output"]["handle"] = get_handle(point["output"]["type"], point["output"]["parameters"])
except JobException as e:
if point["optional"]:
self.logger.warn(f"Ignoring optional point '{point["name"]}'")
self.logger.warn(f"Ignoring optional point '{point['name']}'")
self.run.get_point_by_id(id).delete()
else:
exceptions.append(e)
Expand Down Expand Up @@ -202,7 +202,7 @@ def ep_read_outputs(self):
else:
raise JobException(f"Invalid point type: {type}")
if "multiplier" in component:
self.logger.info(f"Applying a multiplier of '{component["multiplier"]}' to point '{point["name"]}'")
self.logger.info(f"Applying a multiplier of '{component['multiplier']}' to point '{point['name']}'")
value *= component["multiplier"]
if self.ep_api.exchange.api_error_flag(self.ep_state):
raise JobExceptionSimulation(f"EP returned an api error while reading from point: {point.name}")
Expand Down
Loading

0 comments on commit dbc3978

Please sign in to comment.