Skip to main content

ComparedPrediction

Struct ComparedPrediction 

Source
pub struct ComparedPrediction {
Show 27 fields pub id: String, pub title: String, pub altimeter: String, pub altimeter_evidence: String, pub era5_weather: bool, pub design: String, pub weather: String, pub total_impulse_ns: f64, pub catalog_total_impulse_ns: Option<f64>, pub reference_log: String, pub reference_log_sha256: String, pub reference_rule: String, pub log_rows: usize, pub log_apogee_m: f64, pub log_highest_sample_m: Option<f64>, pub merged_apogee_m: f64, pub merged_height_apogee_m: f64, pub merged_apogee_error_percent: f64, pub hpr_apogee_m: f64, pub hpr_height_apogee_m: f64, pub apogee_error_percent: f64, pub revised_because: Option<String>, pub all_inputs_traced: bool, pub untraced: Vec<String>, pub hpr_max_mach: f64, pub catalog_curve: Option<ShownOnly>, pub openrocket_stored: Option<ShownOnly>,
}
Expand description

One predicted flight beside its log, as the real-flights report keeps it.

Fields§

§id: String

The flight’s public id.

§title: String

The rocket, the team and the event.

§altimeter: String

What measured the log’s height (crate::real_flight::Altimeter::kind).

§altimeter_evidence: String

Where that comes from.

§era5_weather: bool

Whether the flight was flown in the ERA5 air of its launch hour; otherwise in the standard atmosphere and steady wind of a stored simulation.

§design: String

What was flown, in words: the design built from RocketPy’s example, or the design file as saved in the stored simulation that names the flight.

§weather: String

The air it was flown in, in words: the ERA5 hour of its launch, or the atmosphere its stored simulation states.

§total_impulse_ns: f64

The impulse of the thrust flown, N s.

§catalog_total_impulse_ns: Option<f64>

The impulse of the catalog’s curve, N s, where Self::catalog_curve shows that flight: the gap from the impulse flown is stated beside the flight’s error.

§reference_log: String

The log, from the repository root.

§reference_log_sha256: String

Its SHA-256, in hex: the file the rule was merged for.

§reference_rule: String

The rule its apogee is read by, as merged with the prediction.

§log_rows: usize

The rows or samples the log holds.

§log_apogee_m: f64

The log’s apogee by that rule, m above the pad.

§log_highest_sample_m: Option<f64>

The log’s highest sample, m, where the rule reads a header line: shown, never compared.

§merged_apogee_m: f64

The prediction as first merged, m, to the digit its page printed (MergedPrediction::apogee_m).

§merged_height_apogee_m: f64

The same as a height above the pad, m.

§merged_apogee_error_percent: f64

The merged prediction’s error against the log’s apogee, per cent.

§hpr_apogee_m: f64

The prediction HPR Sim flies today, m, as the log’s altimeter would read it: the merged one to its printed digit, unless revised.

§hpr_height_apogee_m: f64

The same as a height above the pad, m.

§apogee_error_percent: f64

Today’s prediction less the log’s apogee, per cent of the log’s: the error counted.

§revised_because: Option<String>

Why today’s prediction is not the merged one, when it isn’t (Revision::because).

§all_inputs_traced: bool

Whether every input is traced to the flight’s record, as tagged with the prediction.

§untraced: Vec<String>

What moves the apogee and no record states, as tagged with the prediction.

§hpr_max_mach: f64

HPR Sim’s largest Mach number over the flight.

§catalog_curve: Option<ShownOnly>

The flight on its catalog curve, where the counted curve is not the catalog’s.

§openrocket_stored: Option<ShownOnly>

The OpenRocket simulation stored in the design file, for a flight read from one.

Implementations§

Source§

impl ComparedPrediction

Source

pub fn check( &self, merged: &[MergedPrediction], revisions: &[Revision], ) -> Result<(), String>

Whether the row holds together without the files it was read from, as CI checks it: its merged numbers are merged‘s, today’s prediction is the merged one or the one a revision in revisions gives, the reason kept is that revision’s, each percentage is its meters’, and the traced tag is its list’s.

§Errors

The first thing that doesn’t hold, in words.

Trait Implementations§

Source§

impl Clone for ComparedPrediction

Source§

fn clone(&self) -> ComparedPrediction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComparedPrediction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ComparedPrediction

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ComparedPrediction

Source§

fn eq(&self, other: &ComparedPrediction) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ComparedPrediction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ComparedPrediction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.