From acb06f00a93016ce9e10f649dc3d97678e92cabe Mon Sep 17 00:00:00 2001
From: Eduardo Gonzalez Solares <eglez@ast.cam.ac.uk>
Date: Tue, 30 Apr 2019 16:37:17 +0100
Subject: [PATCH] Immutable object as function parameter

---
 stpt_pipeline/chi_functions.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stpt_pipeline/chi_functions.py b/stpt_pipeline/chi_functions.py
index 5b00cee..de4802d 100644
--- a/stpt_pipeline/chi_functions.py
+++ b/stpt_pipeline/chi_functions.py
@@ -137,7 +137,7 @@ def find_overlap_conf(
     ORIENTATION='X',
     produce_image=False,
     blind_start=True,
-    init_desp=[-50, 1858],
+    init_desp=None,
     DOUBLE_MEDIAN=False,
     return_chi=False,
     IMG_STD=-1,
@@ -192,6 +192,8 @@ def find_overlap_conf(
         DELTA = [16, 8, 1]
     else:
         DELTA = [8, 2, 1]
+        if init_desp is None:
+            init_desp = [-50, 1858]
         dx = init_desp[0]
         dy = init_desp[1]
     #
-- 
GitLab