From 116b6d1d94eac26cabb76467f4387bd9d576f7d4 Mon Sep 17 00:00:00 2001 From: Hal Simpson <hasimpson@usgs.gov> Date: Mon, 8 Feb 2016 16:18:20 -0700 Subject: [PATCH] Fixed problem in the run_update program recursion overwriting it's variables --- geomagio/Controller.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/geomagio/Controller.py b/geomagio/Controller.py index 9d21f228..ebb77c51 100644 --- a/geomagio/Controller.py +++ b/geomagio/Controller.py @@ -220,8 +220,10 @@ class Controller(object): if output_gap[0] == options.starttime: # found fillable gap at start, recurse to previous interval interval = options.endtime - options.starttime - options.starttime = options.starttime - interval - delta - options.endtime = options.starttime - delta + starttime = options.starttime - interval - delta + endtime = options.starttime - delta + options.starttime = starttime + options.endtime = endtime self.run_as_update(options) # fill gap options.starttime = output_gap[0] -- GitLab