From a3d4397a92a9ba8db542ae1987bda44433dbf267 Mon Sep 17 00:00:00 2001 From: Daniel Brown <ddb@star.sr.bham.ac.uk> Date: Fri, 7 Mar 2014 17:11:08 +0000 Subject: [PATCH] returning local copy of dict --- examples/lkat_trace.py | 2 +- pykat/finesse.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/lkat_trace.py b/examples/lkat_trace.py index e8b7a4b..75e6b60 100644 --- a/examples/lkat_trace.py +++ b/examples/lkat_trace.py @@ -11,7 +11,7 @@ pd circ n3 noxaxis maxtem 2 -attr m1 Rc -1000 +attr m1 Rc 0 attr m2 Rc 1000 cav c1 m1 n3 m2 n4 """ diff --git a/pykat/finesse.py b/pykat/finesse.py index c7647e4..82d018c 100644 --- a/pykat/finesse.py +++ b/pykat/finesse.py @@ -1169,7 +1169,8 @@ class kat(object): p.start() p.join() - return trace_info + # return a local copy of the trace information dictionary + return dict(trace_info) def __add_detector(self, det): -- GitLab