Skip to content

Commit

Permalink
remove --setPhysicsModelParameters option
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliya Nigamova committed Jul 24, 2024
1 parent eeaf657 commit c534f67
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/tool_base/Impacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def attach_intercept_args(self, group):
--output stages. Note the ordering of POIs in the list must also be
identical in each step.""",
)
group.add_argument("--setPhysicsModelParameters")
group.add_argument("--setParameters")
group.add_argument("--name", "-n", default="Test")

Expand Down Expand Up @@ -101,11 +100,8 @@ def run_method(self):
# Put intercepted args back
passthru.extend(["-m", mh])
passthru.extend(["-d", ws])
if self.args.setPhysicsModelParameters is not None:
passthru.extend(["--setPhysicsModelParameters", self.args.setPhysicsModelParameters])
if self.args.setParameters is not None:
passthru.extend(["--setParameters", self.args.setParameters])
self.args.setPhysicsModelParameters = self.args.setParameters
pass_str = " ".join(passthru)

paramList = []
Expand Down Expand Up @@ -221,9 +217,9 @@ def run_method(self):
set_parameters_str += var_str + ","
else:
set_parameters_str += setParam + ","
self.args.setPhysicsModelParameters = set_parameters_str.rstrip(",")
self.args.setParameters = set_parameters_str.rstrip(",")

prefit = utils.prefit_from_workspace(ws, "w", paramList, self.args.setPhysicsModelParameters)
prefit = utils.prefit_from_workspace(ws, "w", paramList, self.args.setParameters)
res = {}
if not self.args.noInitialFit:
res["POIs"] = []
Expand Down

0 comments on commit c534f67

Please sign in to comment.