[hdf-compass] 41/295: Correcting for Base.dtype() error. Now the correct NumPy dtype will be displayed when HDF Compass is run.

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 2851c66bf1df311825c91c9c77573fb16abf7cc0
Author: Matt Comerford <matthew.comerford at colorado.edu>
Date:   Wed Aug 13 17:49:24 2014 -0600

    Correcting for Base.dtype() error. Now the correct NumPy dtype will be displayed when HDF Compass is run.
---
 opendap_model/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opendap_model/__init__.py b/opendap_model/__init__.py
index bb91685..7e99063 100644
--- a/opendap_model/__init__.py
+++ b/opendap_model/__init__.py
@@ -122,7 +122,7 @@ class Base(compass_model.Array):
 
     @property
     def dtype(self):
-        return np.dtype(self._dtype)
+        return np.dtype(self._dtype.typecode)
 
     def __getitem__(self, index):
         if self._data is None:

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