def __init__(self, ode_file='', file_name='output.dat'): ''' Constructor ''' self.__raw_data = None # Content of data file self.__desc = None # Data descriptor, read from the ode_file if os.path.exists(file_name): self.__raw_data = np.loadtxt(file_name) if os.path.exists(ode_file): self.__desc = parse.readOdeVars(ode_file)
def readOdeVars(self, ode_file): ''' Set class variable descriptor (to read columns as variable names) ''' self.__desc = parse.readOdeVars(ode_file) return True