tardis.montecarlo.montecarlo_numba.base module¶
- tardis.montecarlo.montecarlo_numba.base.create_tracked_rpacket_df(rpacket_collections, iteration)[source]¶
Creates Dataframe for particular rpacket along with Iteration info
- Parameters
- rpacket_collectionslist (contains
numba.jitclass
instances) A list of rpackets. Stores all the data for each interaction a particular rpacket undergoes as the simulation progresses.
- iterationint
Current Simulation ‘Iteration’ value
- rpacket_collectionslist (contains
- Returns
- rpacket_tracked_dfpd.DataFrame
A dataframe that is generated with all the properties of a single rpacket.
- tardis.montecarlo.montecarlo_numba.base.montecarlo_main_loop(packet_collection, numba_model, numba_plasma, estimators, spectrum_frequency, number_of_vpackets, packet_seeds, iteration, show_progress_bars, no_of_packets, total_iterations)[source]¶
This is the main loop of the MonteCarlo routine that generates packets and sends them through the ejecta.
- Parameters
- packet_collectionPacketCollection
- numba_modelNumbaModel
- estimatorsNumbaEstimators
- spectrum_frequencyastropy.units.Quantity
frequency bins
- number_of_vpacketsint
VPackets released per interaction
- packet_seedsnumpy.array
- tardis.montecarlo.montecarlo_numba.base.montecarlo_radial1d(model, plasma, iteration, no_of_packets, total_iterations, show_progress_bars, runner)[source]¶
- tardis.montecarlo.montecarlo_numba.base.track_rpacket_dataframe(tracked_rpacket_df, tracked_df)[source]¶
Appending function for joining the pre-exisiting dataframe stored in
runner.rpacket_tracker
with the newly created dataframe with iteration information. Helps create the final dataframe which has all the data stored with iteration for all the rpackets.- Returns
- tracked_rpacket_dfpd.DataFrame
Returns the Final DataFrame after appending the data of
tracked_df
into the pre-exisiting values.