Repository: climate Updated Branches: refs/heads/master b4819fa5d -> 4e4e9a013
CLIMATE-789 - Remove redundant code in temporal_resolution function Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4e4e9a01 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4e4e9a01 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4e4e9a01 Branch: refs/heads/master Commit: 4e4e9a013c617e1a0a8f50669392364eec1dfd7a Parents: b4819fa Author: Ibrahim <[email protected]> Authored: Wed May 4 23:29:12 2016 +0530 Committer: Ibrahim <[email protected]> Committed: Tue May 24 19:59:52 2016 +0530 ---------------------------------------------------------------------- ocw/dataset.py | 9 --------- 1 file changed, 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/4e4e9a01/ocw/dataset.py ---------------------------------------------------------------------- diff --git a/ocw/dataset.py b/ocw/dataset.py index 7b14c7f..a597778 100644 --- a/ocw/dataset.py +++ b/ocw/dataset.py @@ -151,15 +151,6 @@ class Dataset: time_resolution = 'monthly' elif num_days > 31: time_resolution = 'yearly' - else: - error = ( - "Unable to calculate the temporal resolution for the " - "dataset. The number of days between two time values is " - "an unexpected value: " + str(num_days) - ) - - logger.error(error) - raise ValueError(error) return time_resolution
