Virtual Packet Logging¶
If virtual_packet_logging is set to True in either the spectrum configuration or as
an argument to the run_tardis function, then TARDIS will log information about the
simulation’s virtual packets.
After running the simulation, the following information can be retrieved:
Note
The following tables list the attributes of the simulation in which the information would be stored. For
example, if you call your TARDIS simulation sim, you would access the virtual packet frequencies by running
sim.runner.virt_packet_nus.
Attribute of Simulation |
Type |
Description |
|---|---|---|
|
Boolean |
Shows if virtual packet logging is turned on |
|
Numpy array |
Virtual packet frequencies |
|
Numpy array |
Virtual packet energies |
|
Numpy array |
Propagation directions that virtual packets are launched at |
|
Numpy array |
Radii that virtual packets are launched at |
|
Numpy array |
Type of interaction that caused the virtual packets to be spawned
(enum, see Accessing Physical Quantities)
|
|
Numpy array |
Frequencies of the r-packets which spawned the virtual packet |
|
Numpy array |
If the last interaction was a line interaction, the
line_interaction_in_id for that interaction
|
|
Numpy array |
If the last interaction was a line interaction, the
line_interaction_out_id for that interaction
|