Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Aug 16, 2024
1 parent 2dd458b commit 1e824ce
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions honeybees/visualization/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def get_agents_portrayals(
portrayal = artist(model, agents, idx, **artist_kwargs_to_pass)
portrayal["x"] = self.convert_lon_to_x(locations[idx, 0], model)
portrayal["y"] = self.convert_lat_to_y(locations[idx, 1], model)
agent_space_state[
f"{agent_subclass_id}_{idx}"
] = portrayal # converting to python int, as this is JSON serializable
agent_space_state[f"{agent_subclass_id}_{idx}"] = (
portrayal # converting to python int, as this is JSON serializable
)
else:
raise ValueError(
f"locations property of agent class {type(agents).__name__} must be tuple or (n, 2) Numpy array with locations"
Expand Down Expand Up @@ -334,9 +334,11 @@ def render(self, model, update):
{
"type": "background options",
"options": background_variables,
"currentselection": model.artists.background_variable
if hasattr(model.artists, "background_variable")
else None,
"currentselection": (
model.artists.background_variable
if hasattr(model.artists, "background_variable")
else None
),
}
)

Expand Down

0 comments on commit 1e824ce

Please sign in to comment.