[hdf-compass] 40/295: removing wildcard import "from pydap.model import *"

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:23 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 62185059a16bf13622e5a8b5479c265944e564a9
Author: Matt Comerford <matthew.comerford at colorado.edu>
Date:   Wed Aug 13 17:47:19 2014 -0600

    removing wildcard import "from pydap.model import *"
---
 opendap_model/__init__.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendap_model/__init__.py b/opendap_model/__init__.py
index 40da064..bb91685 100644
--- a/opendap_model/__init__.py
+++ b/opendap_model/__init__.py
@@ -4,7 +4,7 @@
 
 import numpy as np
 import posixpath as pp
-from pydap.model import *
+import pydap as dap
 from pydap.client import open_url
 from pydap.proxy import ArrayProxy
 
@@ -23,7 +23,7 @@ class Server(compass_model.Store):
     @staticmethod
     def canhandle(url):
         try:
-            return isinstance(open_url(url), DatasetType)
+            return isinstance(open_url(url), dap.model.DatasetType)
         except Exception:
             return False
 
@@ -83,7 +83,7 @@ class Structure(compass_model.Container):
 
     @staticmethod
     def canhandle(store, key):
-        return key in store.dataset and isinstance(store.dataset, StructureType)
+        return key in store.dataset and isinstance(store.dataset, dap.model.StructureType)
 
     def __init__(self, store, key):
         self._store = store
@@ -131,7 +131,7 @@ class Base(compass_model.Array):
 
     @staticmethod
     def canhandle(store, key):
-        return key in store.dataset and isinstance(store.dataset[key], BaseType)
+        return key in store.dataset and isinstance(store.dataset[key], dap.model.BaseType)
 
     def __init__(self, store, key):
         self._store = store

-- 
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