Skip to content

Commit

Permalink
Forgot param in python
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Rabotin <[email protected]>
  • Loading branch information
ChristopherRabotin committed May 25, 2023
1 parent cddc504 commit 697abcc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/python/orbit_determination/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub(crate) fn process_tracking_arc(
/// You must also provide an export path and optionally and export configuration to export the results to a Parquet file.
#[pyfunction]
#[pyo3(
text_signature = "(dynamics, spacecraft, initial_estimate, step, export_path, export_cfg, predict_until=None, predict_for=None)"
text_signature = "(dynamics, spacecraft, initial_estimate, step, export_path, export_cfg, predict_until=None, predict_for=None, fixed_step=False)"
)]
pub(crate) fn predictor(
dynamics: SpacecraftDynamics,
Expand All @@ -120,6 +120,7 @@ pub(crate) fn predictor(
export_cfg: Option<ExportCfg>,
predict_until: Option<Epoch>,
predict_for: Option<Duration>,
fixed_step: Option<bool>,
) -> Result<String, NyxError> {
// TODO: Return a navigation trajectory or use a class that mimics the better ODProcess -- https://github.com/nyx-space/nyx/issues/134
let msr_noise = Matrix2::from_iterator(vec![1e-10, 0.0, 0.0, 1e-10]);
Expand All @@ -143,9 +144,11 @@ pub(crate) fn predictor(
let mut odp = ODProcess::ckf(prop_est, kf, None, Cosm::de438());

if let Some(epoch) = predict_until {
odp.predict_until(step, epoch).unwrap();
odp.predict_until(step, fixed_step.unwrap_or_else(|| false), epoch)
.unwrap();
} else if let Some(duration) = predict_for {
odp.predict_for(step, duration).unwrap();
odp.predict_for(step, fixed_step.unwrap_or_else(|| false), duration)
.unwrap();
}

let maybe = odp.to_parquet(
Expand Down

0 comments on commit 697abcc

Please sign in to comment.