Commit 197916bd authored by mdolling-gfz's avatar mdolling-gfz
Browse files

hand over copy to scripts instead of ref

parent 4152cebb
Pipeline #71696 passed with stages
in 4 minutes and 39 seconds
......@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""This module allows discovery and dispatch of analysis functions."""
import copy
import importlib.util
import logging
import traceback
......@@ -147,7 +148,10 @@ class Dispatcher(object):
logging.error(f"Failed to load module {module_name}." f"{error}")
try:
module.run(hifis_surveyval=self.surveyval, data=self.data)
module.run(
hifis_surveyval=copy.deepcopy(self.surveyval),
data=copy.deepcopy(self.data),
)
except AttributeError as error:
traceback.print_exc()
logging.error(
......
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