Skip to content

Commit

Permalink
Update tests/tdastro/sources/test_snia.py
Browse files Browse the repository at this point in the history
Co-authored-by: mi-dai <[email protected]>
  • Loading branch information
hombit and mi-dai committed Oct 7, 2024
1 parent 6b2fe3e commit a9ad5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tdastro/sources/test_snia.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def draw_single_random_sn(

# Update obs_index to only include observations within SN lifespan
phase_obs = opsim[opsim.colmap["time"]][obs_index] - t0
obs_index = obs_index[(phase_obs > -20) & (phase_obs < 50)]
obs_index = obs_index[(phase_obs > -20 * (1.0 + z)) & (phase_obs < 50 * (1.0 + z))]

times = opsim[opsim.colmap["time"]][obs_index].to_numpy()
filters = opsim[opsim.colmap["filter"]][obs_index].to_numpy(str)
Expand Down

0 comments on commit a9ad5f0

Please sign in to comment.