[hdf-compass] 31/295: remove AsciiGrid.Container Class
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:22 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 762feeb13468dafeda7c5d8e810d876629c7d6a7
Author: John Readey <jreadey at hdfgroup.org>
Date: Fri Jul 25 16:51:03 2014 -0700
remove AsciiGrid.Container Class
---
asc_model/__init__.py | 55 ---------------------------------------------------
1 file changed, 55 deletions(-)
diff --git a/asc_model/__init__.py b/asc_model/__init__.py
index 7abebc4..d11f74b 100644
--- a/asc_model/__init__.py
+++ b/asc_model/__init__.py
@@ -68,57 +68,6 @@ class AsciiGrid(compass_model.Store):
prefixLen = len('file://')
return self._url[prefixLen:]
-
-class Root(compass_model.Container):
-
- """
- Represents the root (and only) group for ASCII Grid
- """
-
- classkind = "Root"
-
- @staticmethod
- def canhandle(store, key):
- print "container can handle, ", key
- if key == '/':
- return True
- return False
-
- def __init__(self, store, key):
- self._store = store
- self._key = key
-
- @property
- def key(self):
- return "/"
-
- @property
- def store(self):
- return self._store
-
- @property
- def displayname(self):
- return self._store.displayname
-
- @property
- def displaytitle(self):
- return "%s %s" % (self.store.displayname, self.key)
-
- @property
- def description(self):
- return 'folder "%s" (%d members)' % (self.displayname, len(self))
-
- def __len__(self):
- return 0
-
- def __iter__(self):
- names = []
- return iter(names)
-
- def __getitem__(self, idx):
- return None
-
-
class ASCFile(compass_model.Array):
"""
@@ -216,10 +165,6 @@ class Attributes(compass_model.KeyValue):
def __getitem__(self, args):
return self.data[args]
-
-
-AsciiGrid.push(ASCFile) # array
-AsciiGrid.push(Root) # container
AsciiGrid.push(Attributes) # attribute data
AsciiGrid.push(ASCFile) # array
--
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