From f70427b9564ffa4ca4c7c7576f74c2f5c6a39ef6 Mon Sep 17 00:00:00 2001 From: Wouter Peters <wouter.peters@wur.nl> Date: Tue, 3 Aug 2010 13:12:26 +0000 Subject: [PATCH] working on implementing Nio for tools/io.py --- da/tools/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/da/tools/io.py b/da/tools/io.py index 5e7a7b21..b4d6688a 100755 --- a/da/tools/io.py +++ b/da/tools/io.py @@ -112,7 +112,7 @@ class CT_CDF(object): def has_date(self,dd): if self.file.dimensions['date'] > 0: - if dd in self.file.variables.['date'][:].tolist(): + if dd in self.file.variables['date'][:].tolist(): return True else: return False @@ -121,7 +121,7 @@ class CT_CDF(object): def GetVariable(self,varname): """ get variable from ncf file""" - return self.file.variables.[varname][:] + return self.file.variables[varname][:] def StandardVar(self,varname): """ return properties of standard variables """ -- GitLab