API Documentation

The fluxes here started out as the mceq-project/crflux implementations, with very slight modifications to make them faster when working with numpy/pandas.

class fluxcomp.CosmicRayFlux(validPDGIDs: list[PDGID])
total_p_and_n_flux(E: _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) tuple[_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes], _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]]

Returns tuple with the total number of protons and neutrons in the flux.

class fluxcomp.GlobalFitGST
class fluxcomp.GlobalSplineFit
class fluxcomp.H3a
class fluxcomp.H4a
class fluxcomp.TIG
class fluxcomp.TIGCutoff