Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added logger for taus. #2557

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tardis/energy_input/gamma_ray_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@
isotope_intensity,
)
tau_start = taus[isotope_name]

if isotope_name in parents:
tau_end = taus[parents[isotope_name]]
logger.info(f"Tau start {tau_start} for {isotope_name}")
if isotope_name not in parents:
tau_end = taus[list(parents.keys())[0]]
logger.info(f"Tau end {tau_end} for {isotope_name}")

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

View check run for this annotation

Codecov / codecov/patch

tardis/energy_input/gamma_ray_transport.py#L201-L204

Added lines #L201 - L204 were not covered by tests
else:
tau_end = 0
logger.info(f"Tau end {tau_end} for {isotope_name}")

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

View check run for this annotation

Codecov / codecov/patch

tardis/energy_input/gamma_ray_transport.py#L207

Added line #L207 was not covered by tests

for c in range(isotope_packet_count):
packet, decay_time_index = initialize_packet_properties(
Expand Down
Loading