nyx-space 2.4.0

Flight-proven, blazing fast astrodynamics from preliminary design to operations
Documentation
use super::ExportCfg;
use pyo3::prelude::*;

#[pymethods]
impl ExportCfg {
    #[pyo3(signature=(timestamped = false))]
    #[new]
    fn py_new(timestamped: bool) -> Self {
        if timestamped {
            Self::timestamped()
        } else {
            Self::default()
        }
    }

    fn __str__(&self) -> String {
        format!("{self:?}")
    }

    fn __repr__(&self) -> String {
        format!("{self:?} @ {self:p}")
    }
}