Skip to content

Commit

Permalink
Merge pull request #233 from Becksteinlab/release082
Browse files Browse the repository at this point in the history
release 0.8.3
  • Loading branch information
orbeckst authored Mar 10, 2023
2 parents e6b85eb + 0563818 commit be3842b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- cron: "44 4 * * 0"
push:
branches:
- "master"
- "main"
pull_request:
branches:
- "master"
- "main"

concurrency:
group: "${{ github.ref }}-${{ github.head_ref }}"
Expand All @@ -22,34 +22,41 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
gromacs-version: ["2021.1"]
# Test other GROMACS versions selectively on a recent Python.
# On macOS only test one GROMACS version and two Python versions
# to keep the testing matrix manageable.
exclude:
- os: macOS-latest
python-version: 3.6
python-version: "3.6"
- os: macOS-latest
python-version: 3.7
python-version: "3.7"
- os: macOS-latest
python-version: 3.9
python-version: "3.8"
- os: macOS-latest
python-version: "3.9"
- os: macOS-latest
python-version: "3.10"
include:
- os: ubuntu-latest
python-version: 2.7
python-version: "2.7"
gromacs-version: "4.6.5"
- os: ubuntu-latest
python-version: 3.8
python-version: "3.10"
gromacs-version: "4.6.5"
- os: ubuntu-latest
python-version: 3.8
python-version: "3.10"
gromacs-version: "2018.6"
- os: ubuntu-latest
python-version: 3.8
python-version: "3.10"
gromacs-version: "2019.1"
- os: ubuntu-latest
python-version: 3.8
python-version: "3.10"
gromacs-version: "2020.6"
- os: ubuntu-latest
python-version: "3.10"
gromacs-version: "2022.4"

env:
MPLBACKEND: agg
Expand Down
10 changes: 10 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
CHANGELOG for GromacsWrapper
==============================

2023-03-09 0.8.3
orbeckst

* confirmed support for GROMACS 4.6.5, 2018, 2019, 2020, 2021, 2022 on
Python 2.7 and 3.6--3.11 on Linux and macOS
* replaced deprecated logger.warn() with logger.warning() (#229)
* replaced deprecated numpy.bool with bool in a test (#234)
* fixed use of moved collections.Iterable in test (#235)


2021-09-09 0.8.2
orbeckst, simonbray

Expand Down
2 changes: 1 addition & 1 deletion gromacs/fileformats/xvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ def break_array(a, threshold=numpy.pi, other=None):
b = numpy.empty((len(a) + m))
# calculate new indices for breaks in b, taking previous insertions into account
b_breaks = breaks + numpy.arange(m)
mask = numpy.zeros_like(b, dtype=numpy.bool)
mask = numpy.zeros_like(b, dtype=bool)
mask[b_breaks] = True
b[~mask] = a
b[mask] = numpy.NAN
Expand Down
4 changes: 3 additions & 1 deletion tests/fileformats/top/test_amber03star.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

import pytest

from gromacs.exceptions import GromacsError
import gromacs

from .top import TopologyTest
from ...datafiles import datafile

@pytest.mark.xfail(gromacs.release().startswith("2022"),
reason="issue https://github.com/Becksteinlab/GromacsWrapper/issues/236")
class TestAmber03star(TopologyTest):
processed = datafile('fileformats/top/amber03star/processed.top')
conf = datafile('fileformats/top/amber03star/conf.gro')
Expand Down
4 changes: 3 additions & 1 deletion tests/fileformats/top/test_amber03w.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

import pytest

from gromacs.exceptions import GromacsError
import gromacs

from .top import TopologyTest
from ...datafiles import datafile

@pytest.mark.xfail(gromacs.release().startswith("2022"),
reason="issue https://github.com/Becksteinlab/GromacsWrapper/issues/236")
class TestAmber03w(TopologyTest):
processed = datafile('fileformats/top/amber03w/processed.top')
conf = datafile('fileformats/top/amber03w/conf.gro')
Expand Down
3 changes: 2 additions & 1 deletion tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def test_failure_ignore():
raise AssertionError("Should have ignored exception {}".format(err))

class TestRelease(object):
major_releases = ('4', '5', '2016', '2018', '2019', '2020', '2021')
# add tested releases here
major_releases = ('4', '5', '2016', '2018', '2019', '2020', '2021', '2022')

def test_release(self):
assert gromacs.release().startswith(self.major_releases)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pytest
from six.moves import cPickle as pickle
from six.moves import StringIO
from collections import Iterable
from six.moves.collections_abc import Iterable

import numpy as np

Expand Down

0 comments on commit be3842b

Please sign in to comment.