NormalizationParameters

class ompy.NormalizationParameters(name, _Model__isfrozen=False, D0=None, Gg=None, Sn=None, Jtarget=None, Emin=0.0, _Emax=None, steps=101, spincutModel=None, spincutPars=None)[source]

Bases: ompy.Model

Storage for normalization parameters + some convenience functions

Attributes Summary

D0

Average s-wave resonance spacing D0 [eV]

Emax

Max energy to integrate <Γγ> to

Emin

Min energy to integrate <Γγ> from

Gg

Total average radiative width [meV]

Jtarget

“Target” (A-1 nucleus) ground state spin

Sn

Neutron separation energy [MeV]

spincutModel

Spincut model

spincutPars

Parameters necessary for the spin cut model

steps

Number of steps in energy grid

Methods Summary

E_grid([retstep])

Wrapps np.linspace creates linearly spaced array from Emin to Emax

asdict()

wrapper for dataclasses.asdict()

get_parameters()

Returns a list of the names of the paramters

is_changed([include, exclude])

Verify that defaults arguments have been changed

load(path)

Loads own parameters from path

save(path)

Save the model parameters to path

Attributes Documentation

D0 = None

Average s-wave resonance spacing D0 [eV]

Emax

Max energy to integrate <Γγ> to

Return type

float

Emin = 0.0

Min energy to integrate <Γγ> from

Gg = None

Total average radiative width [meV]

Jtarget = None

“Target” (A-1 nucleus) ground state spin

Sn = None

Neutron separation energy [MeV]

spincutModel = None

Spincut model

spincutPars = None

Parameters necessary for the spin cut model

steps = 101

Number of steps in energy grid

Methods Documentation

E_grid(retstep=True)[source]

Wrapps np.linspace creates linearly spaced array from Emin to Emax

Parameters

retstep (bool, optional) – If True (default), returns stepsize

Return type

Union[ndarray, Tuple[ndarray, float]]

Returns

Samples of the array. If retstep is True, returns also spacing between the samples.

asdict()

wrapper for dataclasses.asdict()

Return type

Dict[str, Any]

get_parameters()

Returns a list of the names of the paramters

Return type

List[str]

is_changed(include=[], exclude=[])

Verify that defaults arguments have been changed

Parameters
  • include (List[str], optional) – List of attribute names be included in the check. Default is all attributes.

  • exclude (List[str], optional) – List of attribute names to exclude be excluded from check. Default is none

Raises

ValueError – If parameters are still the default values

Return type

None

load(path)

Loads own parameters from path

Parameters

path (Union[str, Path]) – Path to pickled file

Raises

IOError – Path doesn’t exist

Return type

None

save(path)

Save the model parameters to path

Parameters

path (Union[str, Path]) – The path

Return type

None

D0 = None

Average s-wave resonance spacing D0 [eV]

E_grid(retstep=True)[source]

Wrapps np.linspace creates linearly spaced array from Emin to Emax

Parameters

retstep (bool, optional) – If True (default), returns stepsize

Return type

Union[ndarray, Tuple[ndarray, float]]

Returns

Samples of the array. If retstep is True, returns also spacing between the samples.

property Emax

Max energy to integrate <Γγ> to

Return type

float

Emin = 0.0

Min energy to integrate <Γγ> from

Gg = None

Total average radiative width [meV]

Jtarget = None

“Target” (A-1 nucleus) ground state spin

Sn = None

Neutron separation energy [MeV]

spincutModel = None

Spincut model

spincutPars = None

Parameters necessary for the spin cut model

steps = 101

Number of steps in energy grid