[hdf-compass] 30/295: updates based on Andrews review
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 5214f27e9b5258f082595dcbfeec7692d7dee2cd
Author: John Readey <jreadey at hdfgroup.org>
Date: Fri Jul 25 15:11:36 2014 -0700
updates based on Andrews review
---
asc_model/__init__.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/asc_model/__init__.py b/asc_model/__init__.py
index d8a49d4..7abebc4 100644
--- a/asc_model/__init__.py
+++ b/asc_model/__init__.py
@@ -85,7 +85,8 @@ class Root(compass_model.Container):
return False
def __init__(self, store, key):
- pass
+ self._store = store
+ self._key = key
@property
def key(self):
@@ -97,7 +98,7 @@ class Root(compass_model.Container):
@property
def displayname(self):
- return self_store.displayname
+ return self._store.displayname
@property
def displaytitle(self):
@@ -204,6 +205,9 @@ class Attributes(compass_model.KeyValue):
@property
def description(self):
return self.displayname
+
+ def close(self):
+ self._valid = False
@property
def keys(self):
@@ -213,8 +217,10 @@ class Attributes(compass_model.KeyValue):
return self.data[args]
-AsciiGrid.push(Attributes) # attribute data
+
+AsciiGrid.push(ASCFile) # array
AsciiGrid.push(Root) # container
+AsciiGrid.push(Attributes) # attribute data
AsciiGrid.push(ASCFile) # array
compass_model.push(AsciiGrid)
--
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