Struct Inventory
pub struct Inventory {
pub run_data: RunData,
pub intervals: Vec<Interval>,
}
Expand description
Top level inventory data
Collection of the run metadata and list of results for each FISPACT-II calculation step.
Useful functionality is implemented at this level for investigating properties across intervals, and for collecting broader summaries of data.
§Changes to FISPACT-II structure
-
All masses are converted to grams in the background such that Nuclide and Interval mass values are consistent.
-
Sample dose rate for intervals are converted into a more concise structure. See Dose and DoseKind for details.
-
Several of the “totals” are renamed for brevity. e.g. “total_activity” is simply stored as
Interval.activity
.
Fields§
§run_data: RunData
Metadata for the run
intervals: Vec<Interval>
Collection of all run intervals
Implementations§
§impl Inventory
impl Inventory
pub fn activity_list(&self) -> Vec<f64>
pub fn activity_list(&self) -> Vec<f64>
List of total activity (Bq) for each Interval
pub fn specific_activity_list(&self) -> Vec<f64>
pub fn specific_activity_list(&self) -> Vec<f64>
List of sample specific activity (Bq/g) for each Interval
pub fn total_times(&self) -> Vec<f64>
pub fn total_times(&self) -> Vec<f64>
List of total times (seconds) for each Interval
pub fn irradiation_times(&self) -> Vec<f64>
pub fn irradiation_times(&self) -> Vec<f64>
List of irradiation times (seconds) for each Interval
pub fn cooling_times(&self) -> Vec<f64>
pub fn cooling_times(&self) -> Vec<f64>
List of cooling times (seconds) for each Interval
pub fn element_names(&self) -> Vec<String>
pub fn element_names(&self) -> Vec<String>
List of names for all unique elements in the Inventory
pub fn nuclide_names(&self) -> Vec<String>
pub fn nuclide_names(&self) -> Vec<String>
List of names for all unique nuclides in the Inventory
pub fn nuclide_transient(&self) -> Vec<f64>
pub fn nuclide_transient(&self) -> Vec<f64>
List of data for some time dependednt transient
pub fn nearest_interval(&self) -> &Interval
pub fn nearest_interval(&self) -> &Interval
Finds the nearest Interval by total time
pub fn normalise_flux(&mut self, _factor: f64)
pub fn normalise_flux(&mut self, _factor: f64)
Applies a flux normalisation to all data in the Inventory
Trait Implementations§
§impl<'de> Deserialize<'de> for Inventory
impl<'de> Deserialize<'de> for Inventory
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Inventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Inventory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for Inventory
impl Serialize for Inventory
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Inventory
impl RefUnwindSafe for Inventory
impl Send for Inventory
impl Sync for Inventory
impl Unpin for Inventory
impl UnwindSafe for Inventory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.