Skip to content

Commit

Permalink
Dashboard: Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Oct 4, 2023
1 parent 7c90856 commit b0315a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
17 changes: 12 additions & 5 deletions tools/dashboard/generate_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
except ImportError:
from typing_extensions import Literal # type: ignore

import matplotlib as mpl # type: ignore
import matplotlib as mpl

mpl.use("Agg") # change backend, to run without X11
import matplotlib.pyplot as plt # type: ignore
from matplotlib.ticker import AutoMinorLocator # type: ignore
import matplotlib.pyplot as plt
from matplotlib.ticker import AutoMinorLocator

# ======================================================================================
GitSha = NewType("GitSha", str)
Expand Down Expand Up @@ -426,8 +426,15 @@ def make_plot_image(
if full_archive:
ax.plot(curve.x, curve.y, label=curve.label, linewidth=2) # less crowded
else:
style = dict(marker=next(markers), linewidth=2, markersize=6)
ax.errorbar(curve.x, curve.y, yerr=curve.yerr, label=curve.label, **style)
ax.errorbar(
curve.x,
curve.y,
yerr=curve.yerr,
label=curve.label,
marker=next(markers),
linewidth=2,
markersize=6,
)
ax.set_xlim(-max_age - 1, 0)
ax.xaxis.set_minor_locator(AutoMinorLocator())

Expand Down
3 changes: 2 additions & 1 deletion tools/docker/scripts/test_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function run_test {
#===============================================================================
cd /opt/cp2k

echo "Using $(python3 --version) and $(mypy --version)."
echo "Using $(python3 --version) and the following packages:"
pip3 freeze
echo ""

# prepare inputs for minimax_to_fortran_source.py
Expand Down

0 comments on commit b0315a0

Please sign in to comment.