climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [1/2] climate git commit: CLIMATE-915 - Checking netcdf files' file format
Date Fri, 19 May 2017 15:45:50 GMT
Repository: climate
Updated Branches:
  refs/heads/master 55e51c89e -> cb93fce5b


CLIMATE-915 - Checking netcdf files' file format

- ocw.utils.decode_time_value has been fixed


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/8d0f458b
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/8d0f458b
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/8d0f458b

Branch: refs/heads/master
Commit: 8d0f458bce87a3fafa59578ba3201682f9a7b495
Parents: 55e51c8
Author: huikyole <huikyole@argo.jpl.nasa.gov>
Authored: Fri May 19 08:36:05 2017 -0700
Committer: huikyole <huikyole@argo.jpl.nasa.gov>
Committed: Fri May 19 08:36:05 2017 -0700

----------------------------------------------------------------------
 ocw/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/8d0f458b/ocw/utils.py
----------------------------------------------------------------------
diff --git a/ocw/utils.py b/ocw/utils.py
index e9d8d75..db4b926 100755
--- a/ocw/utils.py
+++ b/ocw/utils.py
@@ -54,12 +54,12 @@ def decode_time_values(dataset, time_var_name):
         time_format = time_format[:-3]
 
     time_units = parse_time_units(time_format)
-    time_base = parse_time_base(time_format)
 
     times = []
     if time_units == 'months':
         # datetime.timedelta doesn't support a 'months' option. To remedy
         # this, a month == 30 days for our purposes.
+        time_base = parse_time_base(time_format)
         for time_val in time_data:
             times.append(time_base + relativedelta(months=int(time_val)))
     else:


Mime
View raw message