CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Import.hh>
Generic ConfigType-dependent part of Import.
Public Types | |
using | ConfigType = _ConfigType |
Public Member Functions | |
ImportT (const PrimClex &primclex, const StructureMap< ConfigType > &mapper, ImportSettings const &_set, std::string report_dir) | |
Constructor. More... | |
template<typename PathIterator > | |
void | import (PathIterator begin, PathIterator end) |
ImportSettings const & | settings () const |
Protected Member Functions | |
virtual DataFormatter< ConfigIO::Result > | _import_formatter () const =0 |
Allow ConfigType to specialize the report formatting for 'import'. More... | |
const PrimClex & | primclex () const |
Database< Supercell > & | db_supercell () const |
Path to default calctype training_data directory for config. More... | |
template<typename ConfigType > | |
Database< ConfigType > & | db_config () const |
PropertiesDatabase & | db_props () const |
Uses primclex().settings().default_clex().calctype. More... | |
std::string | calc_dir (const std::string configname) const |
Path to default calctype training_data directory for config. More... | |
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. More... | |
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. More... | |
bool | has_existing_data_or_files (const std::string &to_configname) const |
bool | no_change (const std::string &configname) const |
Check if 'properties.calc.json' file has not changed since last read. More... | |
void | rm_files (const std::string &configname, bool dry_run) const |
Remove existing files in the traning_data directory for a particular configuration. More... | |
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 particular configuration. More... | |
Static Protected Member Functions | |
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 properties.calc.json or POSCAR-type file that will be imported checking a couple possible locations relative to pos_path. More... | |
Private Member Functions | |
void | _import_report (std::vector< ConfigIO::Result > &results) const |
void | _copy_files (std::vector< ConfigIO::Result > &results) const |
Private Attributes | |
const StructureMap< ConfigType > & | m_structure_mapper |
ImportSettings | m_set |
std::string | m_report_dir |
const PrimClex & | m_primclex |
std::function< PropertiesDatabase &()> | m_db_props_func |
using CASM::DB::ImportT< _ConfigType >::ConfigType = _ConfigType |
CASM::DB::ImportT< _ConfigType >::ImportT | ( | const PrimClex & | primclex, |
const StructureMap< ConfigType > & | mapper, | ||
ImportSettings const & | _set, | ||
std::string | report_dir | ||
) |
Constructor.
Definition at line 86 of file Import_impl.hh.
|
private |
Definition at line 185 of file Import_impl.hh.
|
protectedpure virtual |
Allow ConfigType to specialize the report formatting for 'import'.
Implemented in CASM::DB::Import< Configuration >.
|
private |
Definition at line 223 of file Import_impl.hh.
|
inherited |
Path to default calctype training_data directory for config.
Definition at line 237 of file ConfigData.cc.
|
inherited |
Copy files in the same directory as properties.calc.json into the traning_data directory for a particular configuration.
Definition at line 307 of file ConfigData.cc.
|
inherited |
Definition at line 22 of file ConfigData_impl.hh.
|
inherited |
Uses primclex().settings().default_clex().calctype.
Definition at line 234 of file ConfigData.cc.
Path to default calctype training_data directory for config.
Definition at line 230 of file ConfigData.cc.
|
inherited |
Return true if there are existing files in the traning_data directory for a particular configuration.
Return true if there is data already associated with a particular configuration.
Definition at line 257 of file ConfigData.cc.
|
inherited |
Definition at line 261 of file ConfigData.cc.
|
inherited |
Return true if there are existing files in the traning_data directory for a particular configuration.
Definition at line 247 of file ConfigData.cc.
void CASM::DB::ImportT< _ConfigType >::import | ( | PathIterator | begin, |
PathIterator | end | ||
) |
Definition at line 97 of file Import_impl.hh.
|
inherited |
Check if 'properties.calc.json' file has not changed since last read.
Check if 'properties.calc.json' file has not changed since last read
Definition at line 269 of file ConfigData.cc.
|
inlineinherited |
Definition at line 152 of file ConfigData.hh.
|
staticinherited |
Checks if pos_path can be used to resolve a properties.calc.json, and return its path Return path to properties.calc.json or POSCAR-type file that will be imported checking a couple possible locations relative to pos_path.
checks: 1) is a JSON file? is pos_path ends in ".json" or ".JSON", return pos_path 2) assume pos_path is /path/to/POS, checks for /path/to/calctype.current/properties.calc.json 3) assume pos_path is /path/to/POS, checks for /path/to/properties.calc.json else returns pos_path
Definition at line 222 of file ConfigData.cc.
|
inherited |
Remove existing files in the traning_data directory for a particular configuration.
Definition at line 282 of file ConfigData.cc.
|
inline |
|
privateinherited |
Definition at line 192 of file ConfigData.hh.
|
privateinherited |
Definition at line 191 of file ConfigData.hh.
|
private |
|
private |
|
private |