Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed Mar 21, 2024
1 parent 76b5c19 commit e513c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_plots.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pybop
import numpy as np
import pytest
from packaging import version


class TestPlots:
Expand Down Expand Up @@ -125,7 +126,7 @@ def test_optim_plots(self, optim):
def test_with_ipykernel(self, dataset, cost, optim):
import ipykernel

assert ipykernel.__version__ >= 0.6
assert version.parse(ipykernel.__version__) >= version.parse("0.6")
pybop.plot_dataset(dataset, signal=["Voltage [V]"])
pybop.plot2d(cost, gradient=True, steps=5)
pybop.plot_convergence(optim)
Expand Down

0 comments on commit e513c33

Please sign in to comment.