[hdf-compass] 43/295: fixed initialization for Grid class that was left out of previous commit.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.
commit 005a7a4af134e9f69a215f23afdc1c82d4d0a5b8
Author: Matt Comerford <matthew.comerford at colorado.edu>
Date: Wed Aug 20 15:30:27 2014 -0600
fixed initialization for Grid class that was left out of previous commit.
---
opendap_model/__init__.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/opendap_model/__init__.py b/opendap_model/__init__.py
index 82d7c0b..24bb196 100644
--- a/opendap_model/__init__.py
+++ b/opendap_model/__init__.py
@@ -24,9 +24,6 @@ class Server(compass_model.Store):
Represents the remote OpENDAP derver to be accessed
"""
def __contains__(self, key):
- if key.count('/') not in (0, 1):
- return False
-
if '/' not in key:
return key in self.dataset
@@ -152,10 +149,12 @@ class Grid(compass_model.Container):
return new_key in new_dset and isinstance(new_dset[new_key], dap.model.GridType)
def __init__(self, store, key):
+ new_key, new_dset = check_key(key, store.dataset)
+
self._store = store
- self._key = key
+ self._key = new_key
self._url = store.url
- self._dset = store.dataset[key]
+ self._dset = new_dset[new_key]
@property
def key(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git
More information about the debian-science-commits
mailing list