Skip to content

Commit

Permalink
Set y limit to zero for representative line plots, and try to fix pre…
Browse files Browse the repository at this point in the history
…-commit type checking
  • Loading branch information
EdmundGoodman committed Apr 7, 2024
1 parent bcc450b commit 19f6288
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ repos:
hooks:
- id: mypy
args: ["--scripts-are-modules"]
additional_dependencies: ["pydantic==2.6.4", "textual==0.51.0"]
# verbose: true

# Run the vulture dead code detection tool
Expand Down
1 change: 1 addition & 0 deletions src/hpc_multibench/plot/plot_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def draw_line_plot(
plt.xlabel(plot.x)
plt.ylabel(plot.y)
plt.title(plot.title)
plt.ylim(0)
plt.show()


Expand Down
1 change: 1 addition & 0 deletions src/hpc_multibench/plot/plot_plotext.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def draw_line_plot(
this_plt.theme(PLOTEXT_THEME)
this_plt.xlabel(plot.x)
this_plt.ylabel(plot.y)
this_plt.ylim(0)
this_plt.title(plot.title)


Expand Down
4 changes: 2 additions & 2 deletions src/hpc_multibench/yaml_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def realise(
for key, value in instantiation.items():
# TODO: Error checking on keys
if key == "sbatch_config":
run.sbatch_config.update(value) # type: ignore
run.sbatch_config.update(value)
# TODO: Further root cause why this was causing duplicate runs
# elif key == "environment_variables":
# run.environment_variables.update(value) # type: ignore
# run.environment_variables.update(value)
else:
setattr(run, key, value)

Expand Down

0 comments on commit 19f6288

Please sign in to comment.