Commit 6559db80 authored by Axel Loewe's avatar Axel Loewe

Skip lines starting with '#' when reading restitution file

parent 897e34c5
Pipeline #1583 passed with stage
in 50 seconds
......@@ -212,7 +212,6 @@ from datetime import date
from carputils import settings
from carputils import tools
from matplotlib import pyplot
import matplotlib.pyplot as plt
import numpy as np
def parser():
......@@ -271,6 +270,7 @@ def plotResults(di,apd,xmin,xmax,ymin,ymax,webgui,idExp):
f.write('%s\n' % (value2))
else:
# Plot APD vs DI
import matplotlib.pyplot as plt
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1)
......@@ -295,6 +295,8 @@ def visualize(job, args):
diffdi = 0
diffapd = 0
for line in lines:
if line[0] == "#":
continue
p = line.split()
if int(cnt) > int(0):
diffdi = float(di[int(cnt)-1])-float(p[5])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment