DirectSolver¶
- class nsb2.core.solver.DirectSolver[source]¶
Bases:
SolverBase class for solvers of the direct, extinction-only light path.
Methods Summary
compute_rates(source, field, atmosphere, ...)Compute per-source rates along the direct path.
Methods Documentation
- abstractmethod compute_rates(source, field, atmosphere, bandpass)[source]¶
Compute per-source rates along the direct path.
- Parameters:
source (nsb2.core.sources.Source) – The source the field was queried from.
field (nsb2.core.dtypes.SourceField) – Sources to compute rates for.
atmosphere (nsb2.core.atmosphere.Atmosphere) – Atmosphere providing the extinction.
bandpass (nsb2.core.spectral.Bandpass) – Instrument passband.
- Returns:
Rates, shape
(N_sources, C_comp), withfield.weightsalready applied.- Return type:
- __init__()¶
- classmethod __new__(*args, **kwargs)¶