Peano
csv_to_plot Namespace Reference

Functions

def position_check (a)
 

Variables

 parser = argparse.ArgumentParser(description='Script to convert CSV generated by ExaHyPE2 executions into plots')
 
 dest
 
 type
 
 str
 
 required
 
 True
 
 help
 
 int
 
 default
 
 None
 
 float
 
 args = parser.parse_args()
 
string var_name = None else args.variable_name
 
 csvData = list(csv.reader(open(args.file_name,'r'), delimiter=','))
 
 timeIndex = csvData[0].index(' t')
 
 dataIndex = csvData[0].index(" data ") + args.v
 
 firstNumberIndex = csvData[0].index('number(0)')
 
 secondNumberIndex = csvData[0].index(' number(1)')
 
list positionIndexes = [csvData[0].index(' x(0)'), csvData[0].index(' x(1)'), csvData[0].index(' x(2)')]
 
 checkFirstIndexLength = set([data[firstNumberIndex] for data in csvData])
 
 checksecondIndexLength = set([data[secondNumberIndex] for data in csvData])
 
list dt = []
 
list y = []
 
 color
 
 linestyle
 
 marker
 
 label
 
 rotation
 
 fontsize
 

Function Documentation

◆ position_check()

def csv_to_plot.position_check (   a)

Definition at line 59 of file csv_to_plot.py.

References float.

Variable Documentation

◆ args

csv_to_plot.args = parser.parse_args()

Definition at line 21 of file csv_to_plot.py.

◆ checkFirstIndexLength

csv_to_plot.checkFirstIndexLength = set([data[firstNumberIndex] for data in csvData])

Definition at line 84 of file csv_to_plot.py.

◆ checksecondIndexLength

csv_to_plot.checksecondIndexLength = set([data[secondNumberIndex] for data in csvData])

Definition at line 85 of file csv_to_plot.py.

◆ color

csv_to_plot.color

Definition at line 115 of file csv_to_plot.py.

◆ csvData

list csv_to_plot.csvData = list(csv.reader(open(args.file_name,'r'), delimiter=','))

Definition at line 31 of file csv_to_plot.py.

◆ dataIndex

csv_to_plot.dataIndex = csvData[0].index(" data ") + args.v

Definition at line 41 of file csv_to_plot.py.

◆ default

csv_to_plot.default

Definition at line 15 of file csv_to_plot.py.

◆ dest

csv_to_plot.dest

Definition at line 13 of file csv_to_plot.py.

◆ dt

csv_to_plot.dt = []

Definition at line 97 of file csv_to_plot.py.

◆ firstNumberIndex

csv_to_plot.firstNumberIndex = csvData[0].index('number(0)')

Definition at line 42 of file csv_to_plot.py.

◆ float

csv_to_plot.float

Definition at line 16 of file csv_to_plot.py.

Referenced by position_check().

◆ fontsize

csv_to_plot.fontsize

Definition at line 121 of file csv_to_plot.py.

◆ help

csv_to_plot.help

Definition at line 13 of file csv_to_plot.py.

◆ int

csv_to_plot.int

Definition at line 14 of file csv_to_plot.py.

◆ label

csv_to_plot.label

Definition at line 116 of file csv_to_plot.py.

◆ linestyle

csv_to_plot.linestyle

Definition at line 115 of file csv_to_plot.py.

◆ marker

◆ None

csv_to_plot.None

Definition at line 15 of file csv_to_plot.py.

◆ parser

csv_to_plot.parser = argparse.ArgumentParser(description='Script to convert CSV generated by ExaHyPE2 executions into plots')

Definition at line 12 of file csv_to_plot.py.

◆ positionIndexes

list csv_to_plot.positionIndexes = [csvData[0].index(' x(0)'), csvData[0].index(' x(1)'), csvData[0].index(' x(2)')]

Definition at line 45 of file csv_to_plot.py.

◆ required

csv_to_plot.required

Definition at line 13 of file csv_to_plot.py.

◆ rotation

csv_to_plot.rotation

Definition at line 118 of file csv_to_plot.py.

◆ secondNumberIndex

csv_to_plot.secondNumberIndex = csvData[0].index(' number(1)')

Definition at line 43 of file csv_to_plot.py.

◆ str

csv_to_plot.str

Definition at line 13 of file csv_to_plot.py.

◆ timeIndex

csv_to_plot.timeIndex = csvData[0].index(' t')

Definition at line 40 of file csv_to_plot.py.

◆ True

csv_to_plot.True

Definition at line 13 of file csv_to_plot.py.

◆ type

csv_to_plot.type

Definition at line 13 of file csv_to_plot.py.

◆ var_name

string csv_to_plot.var_name = None else args.variable_name

Definition at line 23 of file csv_to_plot.py.

◆ y