Skip to content

Commit

Permalink
Activate SWMR on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Dec 17, 2020
1 parent 4df00e2 commit 814ef9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ jobs:
python -m pip install --upgrade pip
pip install numpy wheel
pip install -r requirements.txt
pip install -r dev-requirements.txt
# Note the use of the -Wa flag to show DeprecationWarnings
- name: Unit tests
run: |
pip install -r dev-requirements.txt
python setup.py install
cd ~
python -Wa -m pytest --pyargs iris
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
5.2.5
-----

* Parallel operations on datasets (via HDF5 single-writer multiple-reader) is now possible on all platforms.
* Code snippets in documentation are now tested for correctness.
* Migration of test infrastructure to pytest.
* Tests are now included in source distributions.
Expand Down
4 changes: 1 addition & 3 deletions iris/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@

# Whether or not single-writer multiple-reader (SWMR) mode is available
# See http://docs.h5py.org/en/latest/swmr.html for more information
SWMR_AVAILABLE = (h5py.version.hdf5_version_tuple > (1, 10, 0)) and (
platform == "win32"
)
SWMR_AVAILABLE = h5py.version.hdf5_version_tuple > (1, 10, 0)


class DiffractionDataset(h5py.File, metaclass=MetaHDF5Dataset):
Expand Down

0 comments on commit 814ef9d

Please sign in to comment.