def __init__(self, log=None, debug=False): # defines binary file specific features FortranFormat.__init__(self) self.endian = b'<' self.tecplot_filename = '' self.log = get_logger2(log, debug=debug) self.debug = debug # mesh = None : model hasn't been read self.is_mesh = None # mesh = True : this is a structured/unstructured grid self.xyz = array([], dtype='float32') self.tet_elements = array([], dtype='int32') self.hexa_elements = array([], dtype='int32') self.quad_elements = array([], dtype='int32') self.tri_elements = array([], dtype='int32') self.results = array([], dtype='float32') self.variables = [] # mesh = False : this is a plot file self.use_cols = None self.dtype = None self.A = None
def __init__(self, log=None, debug=False): FortranFormat.__init__(self) self.endian = b'<' self.log = get_logger(log, 'debug' if debug else 'info') self.debug = debug self.xyz = array([], dtype='float32') self.tet_elements = array([], dtype='int32') self.hexa_elements = array([], dtype='int32') self.quad_elements = array([], dtype='int32') self.tri_elements = array([], dtype='int32') self.results = array([], dtype='float32') self.tecplot_filename = '' self.variables = []
def __init__(self, log=None, debug=False): self.log = get_logger2(log, debug=debug) FortranFormat.__init__(self)
def __init__(self, log=None, debug=False): self.log = get_logger(log, 'debug' if debug else 'info') FortranFormat.__init__(self)
def __init__(self, debug=False, log=None): FortranFormat.__init__(self) self.n = 0 self._endian = '<'
def __init__(self, debug=False, log=None): FortranFormat.__init__(self) self.n = 0 self._endian = '<' self.debug = debug
def __init__(self, log=None, debug=False): self.log = get_logger(log, "debug" if debug else "info") FortranFormat.__init__(self)