tardis.transport.montecarlo.packet_trackers module¶
- class tardis.transport.montecarlo.packet_trackers.RPacketTracker(*args, **kwargs)[source]¶
Bases:
RPacketTracker
Numba JITCLASS for storing the information for each interaction a RPacket instance undergoes. Parameters ———-
- lengthint
Length of the initial array that is instantiated
- seedint
Seed for each RPacket
- indexint
Index position of each RPacket
- statusint
Current status of the RPacket as per interactions
- rfloat
Radius of the shell where the RPacket is present
- nufloat
Luminosity of the RPacket
- mufloat
Cosine of the angle made by the direction of movement of the RPacket from its original direction
- energyfloat
Energy possessed by the RPacket at a particular shell
- shell_idint
Current Shell No in which the RPacket is present
- interaction_type: int
Type of interaction the rpacket undergoes
- num_interactionsint
Internal counter for the interactions that a particular RPacket undergoes
- class_type = jitclass.RPacketTracker#7f854ecb7f80<length:int64,seed:int64,index:int64,status:array(int64, 1d, A),r:array(float64, 1d, A),nu:array(float64, 1d, A),mu:array(float64, 1d, A),energy:array(float64, 1d, A),shell_id:array(int64, 1d, A),interaction_type:array(int64, 1d, A),num_interactions:int64>¶
- tardis.transport.montecarlo.packet_trackers.rpacket_trackers_to_dataframe(rpacket_trackers)[source]¶
Generates a dataframe from the rpacket_trackers list of RPacketCollection Objects.
- Parameters:
- rpacket_trackersnumba.typed.typedlist.List
list of individual RPacketCollection class objects
- Returns:
- pandas.core.frame.DataFrame
Dataframe containing properties of RPackets as columns like status, seed, r, nu, mu, energy, shell_id, interaction_type