SciPy

darkhistory.spec.spectools.EnglossRebinData

class darkhistory.spec.spectools.EnglossRebinData(in_eng, engloss_arr, final_eng)

Structure for energy loss rebinning data.

Parameters:
in_engndarray

The injected energy.

engloss_arrndarray

Energy loss abscissa (second dimension of grid_vals)

final_engndarray

The final energy abscissa to bin into.

Attributes:
in_engndarray

The injected energy.

engloss_arrndarray

Energy loss abscissa (second dimension of grid_vals)

final_engndarray

The final energy abscissa to bin into.

new_engndarray

final_eng, but with additional first bin for underflow.

bin_ind2D ndarray

The (fractional) bin indices of final_eng that the data will be assigned to.

ind_lowslice

Slice which should have some part assigned to underflow.

ind_regslice

Slice which should have some part rebinned in the grid.

reg_bin_lowndarray

Index of lower energy bins of the grid that particles should be assigned to.

reg_bin_uppndarray

Index of higher energy bins of the grid that particles should be assigned to.

low_bin_lowndarray

Marks grid points that have some component assigned to underflow.

in_eng_maskndarray

in_eng index of every point on the grid.

Methods

rebin

Notes

This class is used to store data for energy loss rebinning that only depends on the abscissae specified.

__init__(in_eng, engloss_arr, final_eng)

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__(in_eng, engloss_arr, final_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().

rebin(grid_vals)

Attributes

__annotations__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object