Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 3, 2024
1 parent eddcc08 commit a8eb85d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fuse/plugins/micro_physics/yields.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ def get_quanta(self, interactions_in_roi):
interactions_in_roi["create_S2"],
self.use_recombination_fluctuation,
density=interactions_in_roi["xe_density"],

)

return photons, electrons, excitons

@staticmethod
def _quanta_from_NEST(en, model, e_field, A, Z, create_s2, use_recombination_fluctuation, **kwargs):
def _quanta_from_NEST(
en, model, e_field, A, Z, create_s2, use_recombination_fluctuation, **kwargs
):
"""Function which uses NEST to yield photons and electrons for a given
set of parameters.
Expand Down Expand Up @@ -170,13 +171,13 @@ def _quanta_from_NEST(en, model, e_field, A, Z, create_s2, use_recombination_flu
# if we turn off recombination, just use the yield
if not use_recombination_fluctuation:
photons = y.PhotonYield

electrons = 0
if create_s2:
electrons = event_quanta.electrons
# if we turn off recombination, just use the yield
if not use_recombination_fluctuation:
electrons = y.ElectronYield
electrons = y.ElectronYield

return photons, electrons, excitons

Expand Down

0 comments on commit a8eb85d

Please sign in to comment.