CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <Remove.hh>
Generic ConfigType-dependent part of Remove.
Public Types | |
typedef _ConfigType | ConfigType |
Public Member Functions | |
RemoveT (const PrimClex &primclex, std::string report_dir) | |
void | erase (const DB::Selection< ConfigType > &selection, bool dry_run) |
Erase Configurations that have no data. More... | |
void | erase_data (const DB::Selection< ConfigType > &selection, bool dry_run) |
Erase data and files (permanently), but not Configuration. More... | |
void | erase_all (const DB::Selection< ConfigType > &selection, bool dry_run) |
Removes Configurations and data and files (permanently) More... | |
Protected Member Functions | |
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 | _erase_report (const std::vector< std::string > &fail) |
Private Attributes | |
std::string | m_report_dir |
const PrimClex & | m_primclex |
std::function< PropertiesDatabase &()> | m_db_props_func |
typedef _ConfigType CASM::DB::RemoveT< _ConfigType >::ConfigType |
CASM::DB::RemoveT< _ConfigType >::RemoveT | ( | const PrimClex & | primclex, |
std::string | report_dir | ||
) |
Definition at line 22 of file Remove_impl.hh.
|
private |
Definition at line 87 of file Remove_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.
void CASM::DB::RemoveT< _ConfigType >::erase | ( | const DB::Selection< ConfigType > & | selection, |
bool | dry_run | ||
) |
Erase Configurations that have no data.
Definition at line 27 of file Remove_impl.hh.
void CASM::DB::RemoveT< _ConfigType >::erase_all | ( | const DB::Selection< ConfigType > & | selection, |
bool | dry_run | ||
) |
Removes Configurations and data and files (permanently)
Definition at line 77 of file Remove_impl.hh.
void CASM::DB::RemoveT< _ConfigType >::erase_data | ( | const DB::Selection< ConfigType > & | selection, |
bool | dry_run | ||
) |
Erase data and files (permanently), but not Configuration.
Definition at line 51 of file Remove_impl.hh.
|
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.
|
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.
|
privateinherited |
Definition at line 192 of file ConfigData.hh.
|
privateinherited |
Definition at line 191 of file ConfigData.hh.
|
private |