Skip to content

Commit

Permalink
Fix for int64 datatype of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Jan 24, 2021
1 parent 7d7c4bc commit 81d5307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tardis/montecarlo/montecarlo_numba/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ def montecarlo_main_loop(
"""
output_nus = np.empty_like(packet_collection.packets_output_nu)
last_interaction_types = (
np.ones_like(packet_collection.packets_output_nu) * -1
np.ones_like(packet_collection.packets_output_nu).astype(np.int64) * -1
)
output_energies = np.empty_like(packet_collection.packets_output_nu)

last_interaction_in_nus = np.empty_like(packet_collection.packets_output_nu)
last_line_interaction_in_ids = (
np.ones_like(packet_collection.packets_output_nu) * -1
np.ones_like(packet_collection.packets_output_nu).astype(np.int64) * -1
)
last_line_interaction_out_ids = (
np.ones_like(packet_collection.packets_output_nu) * -1
np.ones_like(packet_collection.packets_output_nu).astype(np.int64) * -1
)

v_packets_energy_hist = np.zeros_like(spectrum_frequency)
Expand Down

0 comments on commit 81d5307

Please sign in to comment.