SciPy

darkhistory.history.histools.IonRSArray

class darkhistory.history.histools.IonRSArray(val_arr, x_arr, rs_arr, in_eng=None, eng=None)

Array of objects indexed by ionization and redshift.

Parameters:
val_arrndarray

Array of objects, indexed by (rs, …), (xH, rs, …) or (xH, xHe, rs, …)

x_arrndarray

List of x values corresponding to val_arr, either None, 1D array or 3D array indexed by (xH, xHe), with each entry being [xH, xHe].

rs_arrndarray

List of redshift values corresponding to val_arr.

in_engndarray

Injection energy abscissa of entries of val_arr.

engndarray

Energy abscissa of entries of val_arr.

Attributes:
interp_funcfunction

An interpolation function over ionization and redshift.

__init__(val_arr, x_arr, rs_arr, in_eng=None, eng=None)

Methods

__delattr__(name, /)

Implement delattr(self, name).

__dir__(/)

Default dir() implementation.

__eq__(value, /)

Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__getstate__(/)

Helper for pickle.

__gt__(value, /)

Return self>value.

__hash__(/)

Return hash(self).

__init__(val_arr, x_arr, rs_arr[, in_eng, eng])

__init_subclass__

This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(*args, **kwargs)

__reduce__(/)

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(/)

Return repr(self).

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__(/)

Size of object in memory, in bytes.

__str__(/)

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

Attributes

__annotations__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object