gaia_access 0.1.1

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

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

/// Table with variability classification results of all classifiers, which are identified by the {\tt classifierName} column. In DR3, multiple classifiers (depending on class) are combined into a single classifier with {\tt classifierName}=`nTransits:5+, which is described in {\tt VariClassifierDefinition} and identifies the classes defined in {\tt VariClassifierClassDefinition}.
///
///
#[allow(non_camel_case_types)]
pub struct vari_classifier_result;

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

/// The columns in the vari_classifier_result 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,
    /// Classifier name used to produce this result, use for lookup in \texttt{VariClassifierDefinition} table
    classifier_name,
    /// Name of best class, see table \texttt{VariClassifierClassDefinition} for details of the class
    best_class_name,
    /// Score of the best class
    best_class_score,
}

impl Column for Col {}

#[cfg(test)]
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::classifier_name.to_string());
    col_strings.push(Col::best_class_name.to_string());
    col_strings.push(Col::best_class_score.to_string());
    map.insert(vari_classifier_result.string(), col_strings);
}