torx#

Library for post-processing PARALLAX based codes and more.

Modules

analysis

Functionality to perform advanced analysis such as tracing and statistics.

equilibrium

Allows to use equilibria and calculate magnetic field related quantities.

fileio

Read, write and interface with files.

geometry

Provides basic geometric formulas and advanced geometry-related routines.

grid

Capabilities to work with grids and operators on grids.

measure

Physics formulas for calculating derived quantities.

normalization

Helps to deal with normalized units in physics codes.

operators

Differential operators on grids.

performance

Allows to obtain and tweak performance relevant settings.

plotting

Routines for plotting and convenience for adjusting plots.

specializations

Specialized packages interfacing PARALLAX based codes.

vector

Vector construction and operations.

Classes

Quantity

TArray

Wrapper for xarray.DataArray with automatic unit handling.

Functions

combine_obj_list

Align specific attribute along a given xarray dim.

convert_xarray_to_quantity

Convert an xarray with units attribute into a quantity with units.

deserialize_Quantity

Convert a serialized quantity object back.

deserialize_norm_attrs

Deserialize all norm attributes.

find_nearest_index

Return the index in the array that is nearest to the value.

make_xarray

Shorthand initialization for xarray.DataArray.

second_smallest

Find the second smallest, unique entry in an array.

serialize_Quantity

Convert a quantity object to a serializable object.

serialize_norm_attrs

Serialize all norm attributes.

set_serialization_target

Set the target backend of the serialization routines.

smoothstep

Return a hermite smoothstep of a specific order.