Skip to content

Commit

Permalink
remove print commands (REVERT IF NEEDED FOR TESTING)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Oct 11, 2023
1 parent 5137845 commit bb302c2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pyhf/experimental/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def append(self, key, channel, sample, thismod, defined_sample):
self.builder_data[key][sample]["data"]["mask"] += mod_data["mask"]
if thismod:
if thismod["name"] != func_name:
print(thismod)
self.builder_data["funcs"].setdefault(
thismod["name"], thismod["data"]["expr"]
)
Expand Down Expand Up @@ -150,14 +149,12 @@ def apply(self, pars):
tensorlib, _ = get_backend()
if self.batch_size is None:
deps = self.param_viewer.get(pars)

Check warning on line 151 in src/pyhf/experimental/modifiers.py

View check run for this annotation

Codecov / codecov/patch

src/pyhf/experimental/modifiers.py#L151

Added line #L151 was not covered by tests
print("deps", deps.shape)
results = tensorlib.astensor([f(deps) for f in self.funcs])
results = tensorlib.einsum(

Check warning on line 153 in src/pyhf/experimental/modifiers.py

View check run for this annotation

Codecov / codecov/patch

src/pyhf/experimental/modifiers.py#L153

Added line #L153 was not covered by tests
"msab,m->msab", self.custom_mod_mask, results
)
else:
deps = self.param_viewer.get(pars)
print("deps", deps.shape)
results = tensorlib.astensor([f(deps) for f in self.funcs])
results = tensorlib.einsum(
"msab,ma->msab", self.custom_mod_mask, results
Expand Down

0 comments on commit bb302c2

Please sign in to comment.