Skip to content

Commit

Permalink
Allow python >=3.7 & small plotting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassec committed Feb 28, 2024
1 parent af38855 commit 0620f56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.7'

- name: git version
run: git --version
Expand All @@ -43,5 +43,5 @@ jobs:
run: |
# TODO the tests pickup omas from the python files in the directory not the installed version
# so to make that work we run an editable install to create the omas_cython lib in the right place.
python3 -m pip install -e .
python3 -m pip install -e
make test
2 changes: 1 addition & 1 deletion omas/omas_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def get2d(contour_quantity):
z = scipy.ndimage.zoom(z, sf)
value_2d = scipy.ndimage.zoom(value_2d, sf)

cs = ax.contour(r, z, value_2d, levels, **kw)
cs = ax.contour(r, z, value_2d, levels=levels, **kw)

if label_contours or ((label_contours is None) and (contour_quantity == 'q')):
ax.clabel(cs)
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
]
keywords = ["integrated modeling", "OMFIT", "IMAS", "ITER"]

requires-python = '>=3.8'
requires-python = '>=3.7'
dependencies = [
'numpy>=1.16.1',
'uncertainties',
Expand All @@ -44,7 +44,6 @@ dependencies = [
'dnspython',
'xmltodict',
'xarray',
'setuptools>=41.2',
'tqdm',
]
readme="README.md"
Expand Down

0 comments on commit 0620f56

Please sign in to comment.