Skip to content

Commit

Permalink
Remove excess decay
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Mar 11, 2024
1 parent 7d53885 commit 5f72a45
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tardis/energy_input/gamma_ray_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ def initialize_packets(
for isotope_name, isotope_packet_count in zip(

Check warning on line 187 in tardis/energy_input/gamma_ray_transport.py

View check run for this annotation

Codecov / codecov/patch

tardis/energy_input/gamma_ray_transport.py#L187

Added line #L187 was not covered by tests
isotopes, isotope_packet_count_df.values
):

isotope_energy = gamma_ray_lines[isotope_name][0, :]
isotope_intensity = gamma_ray_lines[isotope_name][1, :]
isotope = rd.Nuclide(isotope_name)
Expand Down Expand Up @@ -292,9 +291,8 @@ def calculate_total_decays(inventories, time_delta):
total_decays = {}
for shell, isotopes in inventories.items():
total_decays[shell] = {}
for isotope, name in isotopes.items():
decays = name.decay(time_delta.value, "s")
total_decays[shell][isotope] = decays.cumulative_decays(
for isotope, inventory in isotopes.items():
total_decays[shell][isotope] = inventory.cumulative_decays(
time_delta.value
)
return total_decays
Expand Down Expand Up @@ -581,7 +579,6 @@ def calculate_energy_per_mass(decay_energy, raw_isotope_abundance, cell_masses):


def distribute_packets(decay_energy, energy_per_packet):

packets_per_isotope = {}
for shell, isotopes in decay_energy.items():
packets_per_isotope[shell] = {}
Expand Down

0 comments on commit 5f72a45

Please sign in to comment.