pint.scripts.event_optimize.load_events_weights
- pint.scripts.event_optimize.load_events_weights(eventfile: str | Path | IO, model: TimingModel, weightcol: str, wgtexp: float, minMJD: float, maxMJD: float, minWeight: float)[source]
Loads in Fermi photon events and generates a TOA object and a corresponding weights array
- Parameters:
eventfile (Photon events file, format: fits, pickle, pickle.gz) –
model (Timing Model) –
(str) (weightcol) –
(float) (minWeight) –
(float) –
(float) –
(float) –
- Returns:
ts (TOAs object containing all of the photon data)
weights (numpy array containing the corresponding weights)