Skip to content

Commit

Permalink
Use pyparsing 3 <=3.0.6; use np.allclose in plot tests
Browse files Browse the repository at this point in the history
pyparsing/pyparsing#359 causes command block parsing to fail.
  • Loading branch information
cgevans committed Jan 26, 2022
1 parent 023cad6 commit bd75aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.cfg
Expand Up @@ -62,8 +62,8 @@ install_requires =
pandas >= 1
numpy >= 1
tabulate >= 0.8
pyparsing >= 3
typeguard >= 2
pyparsing >=3,<=3.0.6
typeguard >=2
nest_asyncio >= 1.5
click >=8.0,<9.0
toml
Expand Down
3 changes: 2 additions & 1 deletion tests/test_experiment_file.py
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: AGPL-3.0-only

from pathlib import Path
import numpy as np

import pytest

Expand Down Expand Up @@ -48,7 +49,7 @@ def test_plots(exp: Experiment):

# +2 here is for stage lines
assert len(axf.get_lines()) == 5 * len(exp.all_filters) + 2
assert axf.get_xlim() == (-0.004326652778519521, 0.09085970834891001)
assert np.allclose(axf.get_xlim(), (-0.004326652778519521, 0.09085970834891001))

with pytest.raises(ValueError, match="Samples not found"):
exp.plot_over_time("Sampl(e|a)")
Expand Down

0 comments on commit bd75aa1

Please sign in to comment.