Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def readOdeVars(self, ode_file):
     '''
     Set class variable descriptor (to read columns as variable names)
     '''
     self.__desc = parse.readOdeVars(ode_file)
     return True
Ejemplo n.º 4
0
 def readOdeVars(self, ode_file):
     '''
     Set class variable descriptor (to read columns as variable names)
     '''
     self.__desc = parse.readOdeVars(ode_file)
     return True