From d9f9af21b062e44564362bc9ef9231ec25be2299 Mon Sep 17 00:00:00 2001 From: Daniel Brown <ddb@star.sr.bham.ac.uk> Date: Thu, 5 Dec 2013 01:43:24 +0000 Subject: [PATCH] more fixes --- bin/test_parser.py | 1 - pykat/finesse.py | 2 +- pykat/node_network.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/test_parser.py b/bin/test_parser.py index 159e751..d1485db 100644 --- a/bin/test_parser.py +++ b/bin/test_parser.py @@ -14,7 +14,6 @@ ad ad1 0 n2 kat = finesse.kat(kat_code = code) -kat.add(xaxis("lin", [0, 360], kat.m2, kat.m2.phi, 1000)) kat.add(xaxis("lin", [0, 360], kat.m2, kat.m2.phi, 1000)) r = kat.run(printerr=1) diff --git a/pykat/finesse.py b/pykat/finesse.py index d859286..442bb53 100644 --- a/pykat/finesse.py +++ b/pykat/finesse.py @@ -413,7 +413,7 @@ class kat(object): for obj in objs: if isinstance(obj, str): - out.append(lines + '\n') + out.append(obj + '\n') elif isinstance(obj, Component) or isinstance(obj, Detector) or isinstance(obj, Command): txt = obj.getFinesseText() diff --git a/pykat/node_network.py b/pykat/node_network.py index eb0c62b..6570c4c 100644 --- a/pykat/node_network.py +++ b/pykat/node_network.py @@ -254,6 +254,6 @@ class Node(object): class DumpNode(Node): def __init__(self): - Node.__init__(self, 'dump', None) + Node.__init__(self, 'dump', None, -1) \ No newline at end of file -- GitLab