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)
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)