Struct OpticalModel

Source
pub struct OpticalModel<T = PhaseSensor> {
    pub gmt: Gmt,
    pub src: Rc<RefCell<Source>>,
    pub atm: Option<Atmosphere>,
    pub dome_seeing: Option<DomeSeeing>,
    pub tau: f64,
    pub piston: Option<Arc<Vec<f64>>>,
    pub sensor: Option<T>,
}
Expand description

GMT optical model

use gmt_dos_clients_crseo::OpticalModel;
let optical_model_builder = OpticalModel::builder().build()?;

Fields§

§gmt: Gmt§src: Rc<RefCell<Source>>§atm: Option<Atmosphere>§dome_seeing: Option<DomeSeeing>§tau: f64§piston: Option<Arc<Vec<f64>>>§sensor: Option<T>

Implementations§

Trait Implementations§

Source§

impl Default for OpticalModel<PhaseSensor>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T: SegmentWiseSensor, const ID: u8> Read<FaceSheetFigure<ID>> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<FaceSheetFigure<ID>>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M1ModeShapes> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M1ModeShapes>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M1RigidBodyMotions> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M1RigidBodyMotions>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M2ASMFaceSheetFigure> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M2ASMFaceSheetFigure>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M2ASMReferenceBodyNodes> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M2ASMReferenceBodyNodes>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M2RigidBodyMotions> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M2RigidBodyMotions>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<M2modes> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<M2modes>)

Read data from an input
Source§

impl<T: SegmentWiseSensor, const ID: u8> Read<RBM<ID>> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<RBM<ID>>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<ResidualM2modes> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<ResidualM2modes>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Read<SegmentPiston> for OpticalModel<T>

Source§

fn read(&mut self, data: Data<SegmentPiston>)

Read data from an input
Source§

impl<T: SegmentWiseSensor> Size<M1ModeShapes> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor, const E: i32> Size<SegmentPiston<E>> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor> Size<SegmentTipTilt> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor> Size<SegmentWfe> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor, const E: i32> Size<SegmentWfeRms<E>> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor> Size<Wavefront> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T: SegmentWiseSensor, const E: i32> Size<WfeRms<E>> for OpticalModel<T>

Source§

fn len(&self) -> usize

Source§

impl<T> Update for OpticalModel<T>

Source§

fn update(&mut self)

Source§

impl<T> Write<DetectorFrame> for OpticalModel<T>

Source§

impl<T: SegmentWiseSensor, const E: i32> Write<SegmentD7Piston<E>> for OpticalModel<T>

Source§

impl<T: SegmentWiseSensor, const E: i32> Write<SegmentPiston<E>> for OpticalModel<T>

Source§

fn write(&mut self) -> Option<Data<SegmentPiston<E>>>

Source§

impl<T: SegmentWiseSensor> Write<SegmentTipTilt> for OpticalModel<T>

Source§

impl<T: SegmentWiseSensor> Write<SegmentWfe> for OpticalModel<T>

Source§

fn write(&mut self) -> Option<Data<SegmentWfe>>

Source§

impl<T: SegmentWiseSensor, const E: i32> Write<SegmentWfeRms<E>> for OpticalModel<T>

Source§

fn write(&mut self) -> Option<Data<SegmentWfeRms<E>>>

Source§

impl<T: SegmentWiseSensor> Write<Wavefront> for OpticalModel<T>

Source§

fn write(&mut self) -> Option<Data<Wavefront>>

Source§

impl<T: SegmentWiseSensor, const E: i32> Write<WfeRms<E>> for OpticalModel<T>

Source§

fn write(&mut self) -> Option<Data<WfeRms<E>>>

Source§

impl<T> Selector for OpticalModel<T>

Source§

impl<T> Send for OpticalModel<T>

Source§

impl<T> Sync for OpticalModel<T>

Source§

impl<T> TimerMarker for OpticalModel<T>

Source§

impl<T> Units for OpticalModel<T>

Auto Trait Implementations§

§

impl<T> Freeze for OpticalModel<T>
where T: Freeze,

§

impl<T = PhaseSensor> !RefUnwindSafe for OpticalModel<T>

§

impl<T> Unpin for OpticalModel<T>
where T: Unpin,

§

impl<T = PhaseSensor> !UnwindSafe for OpticalModel<T>

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
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.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Tick> for T
where T: TimerMarker + Update,

Source§

fn read(&mut self, _: Data<Tick>)

Read data from an input
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<U, C> Size<Arcsec<U>> for C
where U: UniqueIdentifier, C: Size<U> + Units,

Source§

fn len(&self) -> usize

Source§

impl<U, C> Size<Mas<U>> for C
where U: UniqueIdentifier, C: Size<U> + Units,

Source§

fn len(&self) -> usize

Source§

impl<U, C> Size<MuM<U>> for C
where U: UniqueIdentifier, C: Size<U> + Units,

Source§

fn len(&self) -> usize

Source§

impl<U, C> Size<NM<U>> for C
where U: UniqueIdentifier, C: Size<U> + Units,

Source§

fn len(&self) -> usize

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<T, U, C> Write<Arcsec<U>> for C
where T: Copy + TryFrom<f64> + Mul<Output = T>, <T as TryFrom<f64>>::Error: Debug, U: UniqueIdentifier<DataType = Vec<T>>, C: Write<U> + Units,

Source§

fn write(&mut self) -> Option<Data<Arcsec<U>>>

Source§

impl<T, U, C> Write<Mas<U>> for C
where T: Copy + TryFrom<f64> + Mul<Output = T>, <T as TryFrom<f64>>::Error: Debug, U: UniqueIdentifier<DataType = Vec<T>>, C: Write<U> + Units,

Source§

fn write(&mut self) -> Option<Data<Mas<U>>>

Source§

impl<T, U, C> Write<MuM<U>> for C
where T: Copy + TryFrom<f64> + Mul<Output = T>, <T as TryFrom<f64>>::Error: Debug, U: UniqueIdentifier<DataType = Vec<T>>, C: Write<U> + Units,

Source§

fn write(&mut self) -> Option<Data<MuM<U>>>

Source§

impl<T, U, C> Write<NM<U>> for C
where T: Copy + TryFrom<f64> + Mul<Output = T>, <T as TryFrom<f64>>::Error: Debug, U: UniqueIdentifier<DataType = Vec<T>>, C: Write<U> + Units,

Source§

fn write(&mut self) -> Option<Data<NM<U>>>

Source§

impl<T, C, U, const IDX: usize> Write<Select<U, IDX>> for C
where T: Copy, C: Write<U> + Selector, U: UniqueIdentifier<DataType = Vec<T>>,

Source§

fn write(&mut self) -> Option<Data<Select<U, IDX>>>