1 #ifndef CASM_DB_ConfigData
2 #define CASM_DB_ConfigData
29 template <
typename ValueType>
31 template <
typename ValueType>
32 class DatabaseIterator;
33 class PropertiesDatabase;
126 template <
typename T>
149 template <
typename ConfigType>
156 template <
typename ConfigType>
188 bool copy_additional_files)
const;
196 template <
typename ConfigType>
bool no_change(const std::string &configname) const
Check if 'properties.calc.json' file has not changed since last read.
Database< ConfigType > & db_config() const
bool has_existing_data_or_files(const std::string &to_configname) const
Database< Supercell > & db_supercell() const
Path to default calctype training_data directory for config.
bool has_existing_files(const std::string &to_configname) const
Return true if there are existing files in the traning_data directory for a particular configuration.
ConfigData(const PrimClex &_primclex, TypeTag< ConfigType >)
std::function< PropertiesDatabase &()> m_db_props_func
PropertiesDatabase & db_props() const
Uses primclex().settings().default_clex().calctype.
std::string calc_dir(const std::string configname) const
Path to default calctype training_data directory for config.
const PrimClex & primclex() const
static std::string resolve_struc_path(std::string pos_path, PrimClex const &_pclex)
Checks if pos_path can be used to resolve a properties.calc.json, and return its path Return path to ...
bool has_existing_data(const std::string &to_configname) const
Return true if there are existing files in the traning_data directory for a particular configuration.
void rm_files(const std::string &configname, bool dry_run) const
Remove existing files in the traning_data directory for a particular configuration.
void cp_files(ConfigIO::Result &res, bool dry_run, bool copy_additional_files) const
Copy files in the same directory as properties.calc.json into the traning_data directory for a partic...
const PrimClex & m_primclex
PrimClex is the top-level data structure for a CASM project.
ConfigIO::GenericConfigFormatter< std::string > configname()
Constructs DataFormmaterDictionary containing all Configuration DatumFormatters.
GenericDatumFormatter< std::string, Result > data_origin()
GenericDatumFormatter< double, Result > lattice_deformation_cost()
GenericDatumFormatter< bool, Result > import_additional_files()
GenericDatumFormatter< std::string, Result > final_path()
GenericDatumFormatter< double, Result > score()
GenericDatumFormatter< double, Result > best_score()
GenericDatumFormatter< bool, Result > has_data()
GenericDatumFormatter< bool, Result > import_data()
GenericDatumFormatter< double, Result > energy()
GenericDatumFormatter< bool, Result > preexisting_data()
GenericDatumFormatter< bool, Result > has_complete_data()
GenericDatumFormatter< bool, Result > selected()
Gives a 'selected' column, set all to false.
GenericDatumFormatter< bool, Result > is_new_config()
Gives a 'selected' column, set all to false.
GenericDatumFormatter< std::string, Result > to_configname()
GenericDatumFormatter< double, Result > atomic_deformation_cost()
void default_import_formatters(DataFormatterDictionary< Result > &dict, PropertiesDatabase &db_props)
Insert default formatters to dictionary, for 'casm import'.
GenericDatumFormatter< std::string, Result > initial_path()
GenericDatumFormatter< std::string, Result > fail_msg()
GenericDatumFormatter< bool, Result > is_best()
void default_update_formatters(DataFormatterDictionary< Result > &dict, PropertiesDatabase &db_props)
Insert default formatters to dictionary, for 'casm update'.
std::string create_report_dir(std::string report_dir)
Create a new report directory to avoid overwriting existing results.
std::string pos_path(const ConfigType &config, std::string calctype="")
Data structure for data import results.
Data structure for mapping / import results.
MappedProperties properties