********************** Virtual Packet Logging ********************** If ``virtual_packet_logging`` is set to ``True`` in either the :ref:`spectrum configuration ` or as an :ref:`argument to the run_tardis function `, then TARDIS will log information about the simulation's :ref:`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.transport.virt_packet_nus``. .. list-table:: :header-rows: 1 * - Attribute of Simulation - Type - Description * - ``virt_packet_logging`` - Boolean - Shows if virtual packet logging is turned on * - ``transport.virt_packet_nus`` - Numpy array - Virtual packet frequencies * - ``transport.virt_packet_energies`` - Numpy array - Virtual packet energies * - ``transport.virt_packet_initial_mus`` - Numpy array - Propagation directions that virtual packets are launched at * - ``transport.virt_packet_initial_rs`` - Numpy array - Radii that virtual packets are launched at * - ``transport.virt_packet_last_interaction_type`` - Numpy array - | Type of interaction that caused the virtual packets to be spawned | (enum, see :doc:`how_to_physical_quantities`) * - ``transport.virt_packet_last_interaction_in_nu`` - Numpy array - Frequencies of the r-packets which spawned the virtual packet * - ``transport.virt_packet_last_line_interaction_in_id`` - Numpy array - | If the last interaction was a line interaction, the | line_interaction_in_id for that interaction | (see :doc:`how_to_physical_quantities`) * - ``transport.virt_packet_last_line_interaction_out_id`` - Numpy array - | If the last interaction was a line interaction, the | line_interaction_out_id for that interaction | (see :doc:`how_to_physical_quantities`) * - ``transport.virt_packet_last_line_interaction_shell_id`` - Numpy array - | If the last interaction was a line interaction, the | line_interaction_shell_id for that interaction | (see :doc:`how_to_physical_quantities`)