The abbreviated library name, np, has been replaced with numpy
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/d50998f4 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/d50998f4 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/d50998f4 Branch: refs/heads/master Commit: d50998f404b418a4c6c35b564457172f40f6db02 Parents: 8e74c7f Author: huikyole <huikyo....@jpl.nasa.gov> Authored: Sat Nov 24 18:17:11 2018 -0800 Committer: huikyole <huikyo....@jpl.nasa.gov> Committed: Sat Nov 24 18:17:11 2018 -0800 ---------------------------------------------------------------------- ocw/data_source/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/d50998f4/ocw/data_source/local.py ---------------------------------------------------------------------- diff --git a/ocw/data_source/local.py b/ocw/data_source/local.py index 5056640..aa418da 100644 --- a/ocw/data_source/local.py +++ b/ocw/data_source/local.py @@ -260,7 +260,7 @@ def load_file(file_path, times = utils.decode_time_values(netcdf, time_name) times = numpy.array(times) values = ma.array(netcdf.variables[variable_name][:]) - values = ma.array(values, mask=np.isnan(values)) + values = ma.array(values, mask=numpy.isnan(values)) if not variable_unit: if hasattr(netcdf.variables[variable_name], 'units'): variable_unit = netcdf.variables[variable_name].units