gaia_access 0.1.4

Access the Gaia ESA Archive for astronomical data.
Documentation
// This code is generated by generate_code.py, do not modify it manually.

//! This module contains all the known columns in the vari_microlensing table.

use crate::traits::{Column, Table};

/// This table describes the microlensing events.
#[allow(non_camel_case_types)]
pub struct vari_microlensing;

impl Table for vari_microlensing {
    fn string(&self) -> String {
        "vari_microlensing".to_string()
    }
}

/// The columns in the vari_microlensing table.
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::Display)]
pub enum Col {
    /// Solution Identifier
    solution_id,
    /// Unique source identifier
    source_id,
    /// G-band magnitude baseline (level 0)
    paczynski0_g0,
    /// Error of G-band magnitude baseline (level 0)
    paczynski0_g0_error,
    /// BP-band magnitude baseline (level 0)
    paczynski0_bp0,
    /// Error of BP-band magnitude baseline (level 0)
    paczynski0_bp0_error,
    /// RP-band magnitude baseline (level 0)
    paczynski0_rp0,
    /// Error of RP-band magnitude baseline (level 0)
    paczynski0_rp0_error,
    /// Impact parameter (level 0)
    paczynski0_u0,
    /// Error of the impact parameter (level 0)
    paczynski0_u0_error,
    /// Event timescale (level 0)
    paczynski0_te,
    /// Error of event timescale (level 0)
    paczynski0_te_error,
    /// Time of maximum amplification (level 0)
    paczynski0_tmax,
    /// Error of time of maximum amplification (level 0)
    paczynski0_tmax_error,
    /// Chi square of level 0 Paczynski fit
    paczynski0_chi2,
    /// Reduced chi square of level 0 Paczynski fit
    paczynski0_chi2_dof,
    /// G-band magnitude baseline (level 1)
    paczynski1_g0,
    /// Error of G-band magnitude baseline (level 1)
    paczynski1_g0_error,
    /// BP-band magnitude baseline (level 1)
    paczynski1_bp0,
    /// Error of BP-band magnitude baseline (level 1)
    paczynski1_bp0_error,
    /// RP-band magnitude baseline (level 1)
    paczynski1_rp0,
    /// Error of RP-band magnitude baseline (level 1)
    paczynski1_rp0_error,
    /// Impact parameter (level 1)
    paczynski1_u0,
    /// Error of the impact parameter (level 1)
    paczynski1_u0_error,
    /// Event timescale (level 1)
    paczynski1_te,
    /// Error of event timescale (level 1)
    paczynski1_te_error,
    /// Time of maximum amplification (level 1)
    paczynski1_tmax,
    /// Error of time of maximum amplification (level 1)
    paczynski1_tmax_error,
    /// Blending factor in G-band (level 1)
    paczynski1_fs_g,
    /// Error of blending factor in G-band (level 1)
    paczynski1_fs_g_error,
    /// Blending factor in BP-band (level 1)
    paczynski1_fs_bp,
    /// Error of blending factor in BP-band (level 1)
    paczynski1_fs_bp_error,
    /// Blending factor in RP-band (level 1)
    paczynski1_fs_rp,
    /// Error of blending factor in RP-band (level 1)
    paczynski1_fs_rp_error,
    /// Chi square of level 1 Paczynski fit
    paczynski1_chi2,
    /// Reduced chi square of level 1 Paczynski fit
    paczynski1_chi2_dof,
}

impl Column for Col {}

#[cfg(test)]
/// Collects all the known columns in the vari_microlensing table.
pub fn collect_known(map: &mut std::collections::HashMap<String, Vec<String>>) {
    let mut col_strings = Vec::new();
    col_strings.push(Col::solution_id.to_string());
    col_strings.push(Col::source_id.to_string());
    col_strings.push(Col::paczynski0_g0.to_string());
    col_strings.push(Col::paczynski0_g0_error.to_string());
    col_strings.push(Col::paczynski0_bp0.to_string());
    col_strings.push(Col::paczynski0_bp0_error.to_string());
    col_strings.push(Col::paczynski0_rp0.to_string());
    col_strings.push(Col::paczynski0_rp0_error.to_string());
    col_strings.push(Col::paczynski0_u0.to_string());
    col_strings.push(Col::paczynski0_u0_error.to_string());
    col_strings.push(Col::paczynski0_te.to_string());
    col_strings.push(Col::paczynski0_te_error.to_string());
    col_strings.push(Col::paczynski0_tmax.to_string());
    col_strings.push(Col::paczynski0_tmax_error.to_string());
    col_strings.push(Col::paczynski0_chi2.to_string());
    col_strings.push(Col::paczynski0_chi2_dof.to_string());
    col_strings.push(Col::paczynski1_g0.to_string());
    col_strings.push(Col::paczynski1_g0_error.to_string());
    col_strings.push(Col::paczynski1_bp0.to_string());
    col_strings.push(Col::paczynski1_bp0_error.to_string());
    col_strings.push(Col::paczynski1_rp0.to_string());
    col_strings.push(Col::paczynski1_rp0_error.to_string());
    col_strings.push(Col::paczynski1_u0.to_string());
    col_strings.push(Col::paczynski1_u0_error.to_string());
    col_strings.push(Col::paczynski1_te.to_string());
    col_strings.push(Col::paczynski1_te_error.to_string());
    col_strings.push(Col::paczynski1_tmax.to_string());
    col_strings.push(Col::paczynski1_tmax_error.to_string());
    col_strings.push(Col::paczynski1_fs_g.to_string());
    col_strings.push(Col::paczynski1_fs_g_error.to_string());
    col_strings.push(Col::paczynski1_fs_bp.to_string());
    col_strings.push(Col::paczynski1_fs_bp_error.to_string());
    col_strings.push(Col::paczynski1_fs_rp.to_string());
    col_strings.push(Col::paczynski1_fs_rp_error.to_string());
    col_strings.push(Col::paczynski1_chi2.to_string());
    col_strings.push(Col::paczynski1_chi2_dof.to_string());
    map.insert(vari_microlensing.string(), col_strings);
}