File tree 8 files changed +21
-15
lines changed
8 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 42
42
auto-update-conda : true
43
43
python-version : ${{ matrix.python-version }}
44
44
channel-priority : flexible
45
- # mamba-version: "*"
46
45
activate-environment : ismn
47
46
auto-activate-base : false
48
47
- name : Print environment infos
64
63
- name : Install plot requirements and run plot tests
65
64
shell : bash -l {0}
66
65
run : |
67
- conda install -c conda-forge cartopy
68
66
pip install -e .[plot]
67
+ python -c "import matplotlib, cartopy"
69
68
pytest -m "requires_plot" --cov-append
70
69
- name : Export Environment
71
70
shell : bash -l {0}
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ Unreleased changes in master branch
6
6
===================================
7
7
-
8
8
9
+ Version 1.5.2
10
+ =============
11
+ - Fixed dependency list for `ismn[plot] ` install (PyQt5 and cartopy>=0.22)
12
+ - Use `repurpose.process.parallel_process ` now
13
+
9
14
Version 1.5.1
10
15
=============
11
16
- Fixed a bug where missing optional requirements (xarray, dask) lead to an error
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ exclude =
54
54
# `pip install ismn[plot]` like:
55
55
plot =
56
56
matplotlib
57
- cartopy
57
+ cartopy>=0.22
58
+ PyQt5
58
59
59
60
# only packages required for xarray conversion
60
61
xr =
@@ -102,8 +103,10 @@ norecursedirs =
102
103
testpaths = tests
103
104
104
105
markers =
105
- requires_plot: Run tests for parts of the ismn package that require optional dependencies from `pip install ismn[plot]`
106
- requires_xr: Run tests for parts of the ismn package that require optional dependencies from `pip install ismn[xr]`
106
+ requires_plot: Marks tests for parts of the ismn package that require optional dependencies from `pip install ismn[plot]`
107
+ requires_xr: Marks tests for parts of the ismn package that require optional dependencies from `pip install ismn[xr]`
108
+ data_from_zip: Marks tests that read data from zip file
109
+
107
110
108
111
[aliases]
109
112
dists = bdist_wheel
Original file line number Diff line number Diff line change 32
32
from typing import List , Tuple
33
33
import pandas as pd
34
34
from collections import OrderedDict
35
- from repurpose .process import parallel_process_async
35
+ from repurpose .process import parallel_process
36
36
import traceback
37
37
38
38
from ismn .base import IsmnRoot
@@ -270,7 +270,7 @@ def build_from_scratch(
270
270
'stat_dir' : process_stat_dirs
271
271
}
272
272
273
- res = parallel_process_async (
273
+ res = parallel_process (
274
274
_read_station_dir , ITER_KWARGS = ITER_KWARGS ,
275
275
STATIC_KWARGS = STATIC_KWARGS ,
276
276
n_proc = n_proc , show_progress_bars = True ,
Original file line number Diff line number Diff line change 22
22
# SOFTWARE.
23
23
24
24
import os
25
- from repurpose .process import parallel_process_async # keep this import
25
+ from repurpose .process import parallel_process # keep this import
26
26
import numpy as np
27
27
from pathlib import Path
28
28
from tempfile import gettempdir
@@ -1020,5 +1020,4 @@ def print_climate_dict(self) -> None:
1020
1020
1021
1021
def close_files (self ):
1022
1022
# close all open filehandlers
1023
- self .__file_collection .close ()
1024
-
1023
+ self .__file_collection .close ()
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ def test_sensor_coverage(self):
290
290
start = self .sensor .metadata ['timerange_from' ].val .to_pydatetime ()
291
291
assert self .sensor .get_coverage (start = start - timedelta (days = 100 )) < cov
292
292
np .testing .assert_almost_equal (
293
- self .sensor .get_coverage (freq = '2H ' ), 113.492 , decimal = 3 )
293
+ self .sensor .get_coverage (freq = '2h ' ), 113.492 , decimal = 3 )
294
294
295
295
def test_sensor_attributes (self ):
296
296
"""
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def setUpClass(cls):
131
131
cls .coll = IsmnFileCollection .build_from_scratch (testdata_path_unzipped )
132
132
133
133
134
- @pytest .mark .zip
134
+ @pytest .mark .data_from_zip
135
135
class Test_FileCollectionCeopSepZipped (Test_FileCollectionCeopSepUnzipped ):
136
136
# same tests as for ceop sep format,
137
137
@@ -149,7 +149,7 @@ def setUpClass(cls):
149
149
cls .coll = IsmnFileCollection .build_from_scratch (testdata_zip_path )
150
150
151
151
152
- @pytest .mark .zip
152
+ @pytest .mark .data_from_zip
153
153
class Test_FileCollectionHeaderValuesZipped (Test_FileCollectionCeopSepUnzipped ):
154
154
# same tests as for ceop sep format,
155
155
@classmethod
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ def setUp(self) -> None:
310
310
self .ds = ISMN_Interface (self .testdata )
311
311
312
312
313
- @pytest .mark .zip
313
+ @pytest .mark .data_from_zip
314
314
class Test_ISMN_Interface_CeopZipped (Test_ISMN_Interface_CeopUnzipped ):
315
315
@classmethod
316
316
def setUpClass (cls ):
@@ -332,7 +332,7 @@ def setUp(self) -> None:
332
332
self .ds = ISMN_Interface (self .testdata_zip_path )
333
333
334
334
335
- @pytest .mark .zip
335
+ @pytest .mark .data_from_zip
336
336
class Test_ISMN_Interface_HeaderValuesZipped (Test_ISMN_Interface_CeopUnzipped ):
337
337
@classmethod
338
338
def setUpClass (cls ):
You can’t perform that action at this time.
0 commit comments