Example #1
0
 def set_icntl(self, i, val):
     validate_index(i, self.icntl_len, 'ICNTL')
     validate_value(i, int, 'ICNTL')
     # NOTE: Use the FORTRAN indexing (same as documentation) to
     # set and access info/cntl arrays from Python, whereas C
     # functions use C indexing. Maybe this is too confusing.
     self.lib.set_icntl(self._ma57, i - 1, val)
Example #2
0
 def get_rinfo(self, i):
     validate_index(i, self.rinfo_len, 'RINFO')
     return self.lib.get_info(self._ma57, i - 1)
Example #3
0
 def get_cntl(self, i):
     validate_index(i, self.cntl_len, 'CNTL')
     return self.lib.get_cntl(self._ma57, i - 1)
Example #4
0
 def set_cntl(self, i, val):
     validate_index(i, self.cntl_len, 'CNTL')
     validate_value(val, float, 'CNTL')
     self.lib.set_cntl(self._ma57, i - 1, val)
Example #5
0
 def get_info(self, i):
     validate_index(i, self.info_len, 'INFO')
     return self.lib.get_info(self._ma27, i - 1)
Example #6
0
 def get_icntl(self, i):
     validate_index(i, self.icntl_len, 'ICNTL')
     return self.lib.get_icntl(self._ma27, i - 1)