carputils
Doxygen code documentation for the python framework controlling openCARP
Namespaces | Functions | Variables
carputils.carpio Namespace Reference

Namespaces

 bin
 
 csv
 
 filelike
 
 igb
 
 limpetguihdf5
 
 lut
 
 meshtool
 
 msh_stats
 
 quantity
 
 sv
 
 tagdefs
 
 txt
 

Functions

def show (msg, mode=1, showTime=None)
 Helper function to output status messages to the commandline. More...
 
def print_dict (dict_config)
 
def dat2adj (datfile, adjfile, grid='intra')
 Convert a .dat file to a nodal adjustment vector file. More...
 
def create_struct (kwargs)
 create structure with provided members More...
 

Variables

dictionary READERS
 
bool globalShowTime = False
 

Function Documentation

◆ create_struct()

def carputils.carpio.create_struct (   kwargs)

create structure with provided members

Parameters

kwargs dict

object of type Struct where the attributes are the keys of the provided kwargs holding the corresponding values

◆ dat2adj()

def carputils.carpio.dat2adj (   datfile,
  adjfile,
  grid = 'intra' 
)

Convert a .dat file to a nodal adjustment vector file.

Parameters
datfile(str) Path of .dat file to convert
adjfile(str) Path to write nodal adjustment vector file
grid(str) String to enter in output file header as grid type

◆ print_dict()

def carputils.carpio.print_dict (   dict_config)

◆ show()

def carputils.carpio.show (   msg,
  mode = 1,
  showTime = None 
)

Helper function to output status messages to the commandline.

In case the standard terminal size can not be identified, the default message line length will be 80 characters.

Parameters
msgMessage to send to the command line
mode0 – message will be framed with a header and footer e.g. "==="
1message will be prepended with a hash tag
showTimeappend the time to the message

Variable Documentation

◆ globalShowTime

bool carputils.carpio.globalShowTime = False

◆ READERS

dictionary carputils.carpio.READERS
Initial value:
1 = {'.igb': igb.open,
2  '.igb.gz': igb.open,
3  '.dynpt': igb.open,
4  '.dynpt.gz': igb.open,
5  '.dat': txt.open,
6  '.dat.gz': txt.open,
7  '.vec': txt.open,
8  '.vec.gz': txt.open,
9  '.vtx': txt.open,
10  '.vtx.gz': txt.open,
11  '.bin': bin.open,
12  '.csv': csv.open}