Changeset 27035 for issm/trunk/src/m/classes/results.py
- Timestamp:
- 06/01/22 05:01:48 (3 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 26745-26955,26957-27031
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/results.py
r25836 r27035 143 143 144 144 def __getattr__(self, key): #{{{ 145 if len(self.steps) == 1: 146 return getattr(self.steps[0], key) 147 else: 148 raise Exception('<results>.<solution> error: Currently, can only get a field if we are not working with a transient solution.') 145 # NOTE: Currently only returning value from first frame of transient solution (see retrieval of md.results.TransientSolution.BedGRD in test2051.py for justification) 146 return getattr(self.steps[0], key) 147 148 # Original code 149 # if len(self.steps) == 1: 150 # return getattr(self.steps[0], key) 151 # else: 152 # raise Exception('<results>.<solution> error: Currently, can only get a field if we are not working with a transient solution.') 149 153 #}}} 150 154
Note:
See TracChangeset
for help on using the changeset viewer.