From 4c3d90053eb582d76caed39c83a579264ecd07a1 Mon Sep 17 00:00:00 2001 From: Domenico Nappo Date: Fri, 7 Feb 2020 10:40:40 +0100 Subject: [PATCH] super call for py2 --- setup.py | 2 +- src/lisfloodutilities/compare/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f49cd49..8bbf821 100644 --- a/setup.py +++ b/setup.py @@ -101,7 +101,7 @@ def run(self): 'setuptools>=41.0', 'numpy>=1.15,<1.17', ], - install_requires=['numpy>=1.15', 'pyyaml', 'netCDF4>=1.3.1', 'xarray', 'dask', 'pandas'], + install_requires=['numpy>=1.15', 'pyyaml', 'netCDF4>=1.3.1', 'xarray', 'dask', 'pandas', 'pathlib2', 'nine'], author="Valerio Lorini, Domenico Nappo, Lorenzo Alfieri", author_email="valerio.lorini@ec.europa.eu,domenico.nappo@gmail.com,lorenzo.alfieri@ec.europa.eu", keywords=['netCDF4', 'PCRaster', 'mapstack', 'lisflood', 'efas', 'glofas', 'ecmwf', 'copernicus'], diff --git a/src/lisfloodutilities/compare/__init__.py b/src/lisfloodutilities/compare/__init__.py index 63bef44..985375c 100644 --- a/src/lisfloodutilities/compare/__init__.py +++ b/src/lisfloodutilities/compare/__init__.py @@ -82,7 +82,7 @@ class NetCDFComparator(Comparator): glob_expr = ['**/*.nc'] def __init__(self, mask, atol=0.05, rtol=0.1, max_perc_diff=0.2, max_perc_large_diff=0.1): - super().__init__() + super(NetCDFComparator, self).__init__() if isinstance(mask, str): mask = Dataset(mask) maskvar = [k for k in mask.variables if len(mask.variables[k].dimensions) == 2][0]