Skip to content

Commit

Permalink
Support Python 3.8
Browse files Browse the repository at this point in the history
The pip to merge dicts is supported in Python 3.9+; replace with the dict.update method
  • Loading branch information
rafmudaf committed Nov 7, 2024
1 parent 72621c3 commit cf37658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions floris/flow_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,9 @@ def add_ref_lines(
'color': 'k',
'linewidth': 1.1
}
kwargs = default_params | kwargs
params = copy.deepcopy(default_params)
params.update(kwargs)

for ax in self.axs[row]:
for coordinate in ref_lines_D:
ax.plot([0.0, 1.0], [coordinate, coordinate], **kwargs)
ax.plot([0.0, 1.0], [coordinate, coordinate], **params)

0 comments on commit cf37658

Please sign in to comment.