Skip to content

Commit ac138a6

Browse files
fixed tests
1 parent 0d7f661 commit ac138a6

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.pylintrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,21 +425,22 @@ disable=raw-checker-failed,
425425
multiple-statements,
426426
line-too-long,
427427
import-error,
428-
consider-using-with
428+
consider-using-with,
429+
c-extension-no-member
429430

430431

431432
# Enable the message, report, category or checker with the given id(s). You can
432433
# either give multiple identifier separated by comma (,) or put this option
433434
# multiple time (only on the command line, not in the configuration file where
434435
# it should appear only once). See also the "--disable" option for examples.
435-
enable=c-extension-no-member
436+
enable=
436437

437438

438439
[METHOD_ARGS]
439440

440441
# List of qualified names (i.e., library.method) which require a timeout
441442
# parameter e.g. 'requests.api.get,requests.api.post'
442-
timeout-methods=requests.api.delete,requests.api.get,requests.api.head,requests.api.options,requests.api.patch,requests.api.post,requests.api.put,requests.api.request
443+
# timeout-methods=requests.api.delete,requests.api.get,requests.api.head,requests.api.options,requests.api.patch,requests.api.post,requests.api.put,requests.api.request
443444

444445

445446
[MISCELLANEOUS]

cmethods/CMethods.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,9 @@ def quantile_delta_mapping(
718718

719719
res.values = QDM1 * delta # Eq. 2.4
720720
return res
721-
raise ValueError(f"Unknown kind {kind}!")
721+
raise NotImplementedError(
722+
f"{kind} not available for quantile_delta_mapping. Use '+' or '*' instead."
723+
)
722724

723725
# * -----========= G E N E R A L =========------
724726
@staticmethod

tests/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
netCDF4>=1.6.1
12
numpy
3+
pytest
24
scikit-learn
3-
xarray
5+
tqdm
6+
xarray>=2022.11.0

tests/test_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def test_3d_sclaing_methods(self) -> None:
240240
simh=self.data[kind]["simh"],
241241
simp=self.data[kind]["simp"],
242242
kind=kind,
243-
goup="time.month", # default
243+
group="time.month", # default
244244
)
245245
assert isinstance(result, xr.core.dataarray.DataArray)
246246
for lat in range(len(self.data[kind]["obsh"].lat)):

0 commit comments

Comments
 (0)