empyrean.Session¶
- class Session(source, config=None)[source]
Bases:
objectStateful orbit-determination handle.
Methods
__init__(source[, config])Construct a session from a path, PSV content, or quivr table.
diff(prior_idx)Diff the current fit against the
prior_idx-th history entry.from_ades(path[, config])Construct a session from an ADES PSV / MPC80 file path.
from_observations(observations[, config])Construct a session from an
ADESObservationstable.history(idx)Retrieve the i-th history entry.
is_masked(idx)Whether the observation at
idxis masked.mask(idx)Mask the observation at the given index.
refine()Run an OD refine using the current mask state.
unmask(idx)Unmask the observation at the given index.
unmask_all()Clear all masks.
Attributes
history_lenNumber of fits stored in the session history.
n_activeNumber of observations active in the next refine.
n_maskedNumber of currently masked observations.
n_observationsTotal observations in the session, masked or not.
- classmethod from_ades(path, config=None)[source]
Construct a session from an ADES PSV / MPC80 file path.
- classmethod from_observations(observations, config=None)[source]
Construct a session from an
ADESObservationstable.- Return type:
Session- Parameters:
observations (ADESObservations)
config (ODConfig | None)
- property n_observations: int
Total observations in the session, masked or not.
- property n_masked: int
Number of currently masked observations.
- property n_active: int
Number of observations active in the next refine.
- unmask(idx)[source]
Unmask the observation at the given index.
- is_masked(idx)[source]
Whether the observation at
idxis masked.
- refine()[source]
Run an OD refine using the current mask state.
On the first call runs the full IOD → DC pipeline. On subsequent calls reuses the previously-fit orbit as the IOD seed (skipping the IOD step). Pushes the new fit onto the session’s history.
- Return type:
DetermineResult
- property history_len: int
Number of fits stored in the session history.