pylbo.testing

Module Contents

Classes

FakeDataSet

Main container for a single Legolas dataset.

Functions

pickle_dataseries_to_file(series, filepath)

load_pickled_dataseries(filepath)

pylbo.testing.pickle_dataseries_to_file(series, filepath)[source]
pylbo.testing.load_pickled_dataseries(filepath)[source]
class pylbo.testing.FakeDataSet(datfile, seed=None)[source]

Bases: pylbo.data_containers.LegolasDataSet

Main container for a single Legolas dataset.

Parameters:

datfile (str, PathLike) – Path to the datfile.

header

The datfile header.

Type:

dict

grid

The base grid.

Type:

numpy.ndarray

grid_gauss

The Gaussian grid.

Type:

numpy.ndarray

equilibria

Dictionary containing the equilibrium arrays.

Type:

dict

eigenvalues

Array containing the complex eigenvalues.

Type:

numpy.ndarray

geometry

The geometry.

Type:

str

scale_factor

Array with the scale factor. One for Cartesian geometries, r for cylindrical.

Type:

numpy.ndarray

x_start

Start of the grid.

Type:

float

x_end

End of the grid

Type:

float

gridpoints

The number of base gridpoints.

Type:

int

gauss_gridpoints

The number of Gaussian gridpoints.

Type:

int

matrix_gridpoints

The dimension of the matrix.

Type:

int

ef_gridpoints

The number of eigenfunction gridpoints.

Type:

int

gamma

The ratio of specific heats.

Type:

float

eq_type

The type of equilibrium selected.

Type:

str

cgs

If True, all units are in cgs.

Type:

bool

units

Dictionary containing the unit normalisations.

Type:

dict

eq_names

Array containing the names of the equilibrium arrays.

Type:

numpy.ndarray

_set_test_equilibria()[source]
_set_test_eigenvalues()[source]