Commit a7cdea0d authored by David E. DeMarle's avatar David E. DeMarle

Merge branch 'add-D-conversion' into 'master'

only insert newlines in string version of results

See merge request !114
parents a0f2c6e2 75976b5d
Pipeline #87391 failed with stage
in 0 seconds
......@@ -30,14 +30,13 @@ def to_D(fname, save=False):
line.append("NA")
line.append(",")
line.append(cs._get_filename(desc))
line.append("\n")
results.append(line)
# make the header line
hline = []
for k in sorted(cs.parameter_list):
hline.append("{0},".format(k))
hline.append("FILE\n")
hline.append("FILE")
results.append(hline)
# iterate
......@@ -54,7 +53,7 @@ def to_string(results):
res = ''
for line in results:
sline = ''.join(line)
res += sline
res += sline + "\n"
return res
......@@ -63,5 +62,4 @@ if __name__ == '__main__':
print("Usage: python toCinemaD.py ABorC.json")
quit()
res = to_D(sys.argv[1])
print(to_string(res))
print(to_string(to_D(sys.argv[1])))
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