#include <ConfigImport.hh>
Configuration-specialized Import.
Definition at line 96 of file ConfigImport.hh.
|
static const std::string | desc |
|
|
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...
|
|
◆ ConfigType
◆ Update()
◆ _update_formatter()
◆ _update_report()
◆ calc_dir()
std::string CASM::DB::ConfigData::calc_dir |
( |
const std::string |
configname | ) |
const |
|
inherited |
Path to default calctype training_data directory for config.
Definition at line 237 of file ConfigData.cc.
◆ cp_files()
void CASM::DB::ConfigData::cp_files |
( |
ConfigIO::Result & |
res, |
|
|
bool |
dry_run, |
|
|
bool |
copy_additional_files |
|
) |
| const |
|
inherited |
Copy files in the same directory as properties.calc.json into the traning_data directory for a particular configuration.
- First: calc_props_path = _calc_properties_path(pos_path) to get properties.calc.json location
- If calc_props_path.empty(), return
- else if !copy_additional_files copy properties.calc.json file only and return
- else, recursively copy all files from calc_props_path.remove_filename() to the training data directory for the current calctype
- Returns
- {did_cp, did_cp_more}:
- did_cp: if properties.calc.json file was found and copied
- did_cp_more: if additional files were found and copied
Definition at line 307 of file ConfigData.cc.
◆ db_config()
template<typename ConfigType >
◆ db_props()
◆ db_supercell()
Path to default calctype training_data directory for config.
Definition at line 230 of file ConfigData.cc.
◆ has_existing_data()
bool CASM::DB::ConfigData::has_existing_data |
( |
const std::string & |
to_configname | ) |
const |
|
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.
◆ has_existing_data_or_files()
bool CASM::DB::ConfigData::has_existing_data_or_files |
( |
const std::string & |
to_configname | ) |
const |
|
inherited |
◆ has_existing_files()
bool CASM::DB::ConfigData::has_existing_files |
( |
const std::string & |
to_configname | ) |
const |
|
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.
◆ no_change()
bool CASM::DB::ConfigData::no_change |
( |
const std::string & |
configname | ) |
const |
|
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
- Compares 'data_timestamp' && fs::last_write_time
Definition at line 269 of file ConfigData.cc.
◆ primclex()
const PrimClex& CASM::DB::ConfigData::primclex |
( |
| ) |
const |
|
inlineinherited |
◆ resolve_struc_path()
std::string CASM::DB::ConfigData::resolve_struc_path |
( |
std::string |
pos_path, |
|
|
PrimClex const & |
_pclex |
|
) |
| |
|
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.
◆ rm_files()
void CASM::DB::ConfigData::rm_files |
( |
const std::string & |
configname, |
|
|
bool |
dry_run |
|
) |
| const |
|
inherited |
Remove existing files in the traning_data directory for a particular configuration.
Definition at line 282 of file ConfigData.cc.
◆ run()
◆ update()
Re-parse calculations 'from' all selected configurations.
Definition at line 39 of file Update_impl.hh.
◆ desc
◆ m_db_props_func
◆ m_primclex
const PrimClex& CASM::DB::ConfigData::m_primclex |
|
privateinherited |
◆ m_report_dir
◆ m_structure_mapper
The documentation for this class was generated from the following files:
- /Users/bpuchala/Work/codes/CASMcode_v0.2.X_reference/include/casm/database/ConfigImport.hh
- /Users/bpuchala/Work/codes/CASMcode_v0.2.X_reference/src/casm/database/ConfigImport.cc