PyREx

Helper Functions (pyrex.internal_functions)

Helper functions and classes for use in PyREx modules.

This module is intended as a container for functions, typically used in more than one PyREx module, which are not physics-motivated and are instead used mainly to clean up code. Functions and classes in this module may also be computer-science-motivated structures that python doesn’t include naturally.

normalize

Normalize the given vector.

get_from_enum

Find the enum value given some representation of it.

flatten

Flattens an iterator to iterate over all elements individually.

complex_interp

Perform interpolation on complex values.

complex_bilinear_interp

Perform bilinear interpolation on complex values.

mirror_func

Mirror the attributes of one function onto another.

lazy_property

Decorator that makes a property lazily evaluated.

LazyMutableClass

Class with lazy properties which may depend on other class attributes.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation