Changeset 27458 for issm/trunk-jpl/src/m/classes/qmu/response_function.py
- Timestamp:
- 12/08/22 00:23:36 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/qmu/response_function.py
r25011 r27458 103 103 return [rf] # Always return a list, so we have something akin to a MATLAB single row matrix 104 104 105 def __repr__(rf): #{{{105 def __repr__(rf): # {{{ 106 106 # display the object 107 107 string = 'class "response_function" object = \n' … … 116 116 117 117 return string 118 # }}}119 120 def __len__(self): #{{{118 # }}} 119 120 def __len__(self): # {{{ 121 121 return max(len(self.respl), len(self.probl), len(self.rell), len(self.grell)) 122 # }}}123 124 @staticmethod 125 def prop_desc(rf, dstr): #{{{122 # }}} 123 124 @staticmethod 125 def prop_desc(rf, dstr): # {{{ 126 126 desc = ['' for i in range(np.size(rf))] 127 127 for i in range(np.size(rf)): … … 135 135 desc = allempty(desc) 136 136 return desc 137 # }}}138 139 @staticmethod 140 def prop_stype(rf): #{{{137 # }}} 138 139 @staticmethod 140 def prop_stype(rf): # {{{ 141 141 stype = [] 142 142 return stype 143 # }}}144 145 @staticmethod 146 def prop_scale(rf): #{{{143 # }}} 144 145 @staticmethod 146 def prop_scale(rf): # {{{ 147 147 scale = [] 148 148 return scale 149 # }}}150 151 @staticmethod 152 def prop_weight(rf): #{{{149 # }}} 150 151 @staticmethod 152 def prop_weight(rf): # {{{ 153 153 weight = [] 154 154 return weight 155 # }}}156 157 @staticmethod 158 def prop_lower(rf): #{{{155 # }}} 156 157 @staticmethod 158 def prop_lower(rf): # {{{ 159 159 lower = [] 160 160 return lower 161 # }}}162 163 @staticmethod 164 def prop_upper(rf): #{{{161 # }}} 162 163 @staticmethod 164 def prop_upper(rf): # {{{ 165 165 upper = [] 166 166 return upper 167 # }}}168 169 @staticmethod 170 def prop_target(rf): #{{{167 # }}} 168 169 @staticmethod 170 def prop_target(rf): # {{{ 171 171 target = [] 172 172 return target 173 # }}}173 # }}} 174 174 175 175 @staticmethod … … 191 191 192 192 #new methods: 193 def isscaled(self): #{{{193 def isscaled(self): # {{{ 194 194 if strncmpi(self.descriptor, 'scaled_', 7): 195 195 return True 196 196 else: 197 197 return False 198 # }}}198 # }}} 199 199 200 200 @staticmethod
Note:
See TracChangeset
for help on using the changeset viewer.