pynbody.bridge

pynbody.bridge#

Tools for connecting different simulation snaphots

The bridge module allows you to take a subview (e.g. a halo) from one snapshot and ‘push’ it into the other. This is especially useful if the two snapshots are different time outputs of the same simulation, or closely-related simulations (e.g. one DMO and one hydro).

Once connected, bridge called on a specific subset of particles in output1 will trace these particles back (or forward) to the output2, enabling observing a change in their properties, such as position, temperature, etc.

For an introduction on how to use bridges, see the tutorial.

Functions

bridge_factory(a, b)

Create a bridge connecting the two specified snapshots.

Classes

AbstractBridge(start, end)

The abstract base class for bridges between two snapshots.

OneToOneBridge(start, end)

Connects two snapshots with identical particle numbers and file layout.

OrderBridge(start, end[, order_array, ...])

Connects to snapshots that both have arrays of identity integers (iord or similar) to identify particles.