From f876e8cf8424c93afb6462a7bfa78a3f0dbf8b79 Mon Sep 17 00:00:00 2001 From: Anthony Lim <anthony.lim@stfc.ac.uk> Date: Tue, 8 May 2018 17:20:19 +0100 Subject: [PATCH] refs #21779 simplified the data storage in maxent_model.py --- scripts/Muon/maxent_model.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/Muon/maxent_model.py b/scripts/Muon/maxent_model.py index 8a522df6bf9..98f4b20ebfb 100644 --- a/scripts/Muon/maxent_model.py +++ b/scripts/Muon/maxent_model.py @@ -21,14 +21,8 @@ class MaxEntWrapper(object): """ store the data in the wrapper for later """ - if "phaseTable" in inputs: - self.phaseTable = inputs["phaseTable"] - else: - self.phaseTable = None - if "maxent" in inputs: - self.maxent = inputs["maxent"] - else: - self.maxent = None + self.phaseTable = inputs.get("phaseTable",None) + self.maxent = inputs.get("maxent",None) self.model.setRun(inputs["Run"]) def execute(self): -- GitLab