13 json[
"dirs"] = props.
dirs();
35 std::runtime_error error_if_invalid{
36 "Error reading xtal::ScelEnumProps from JSON"};
51 std::string default_dirs{
"abc"};
52 Eigen::Matrix3i generating_matrix;
57 parser.
optional_else(generating_matrix,
"unit_cell", default_matrix);
58 parser.
value = notstd::make_unique<xtal::ScelEnumProps>(
min,
max + 1, dirs,
jsonParser & put_obj()
Puts new empty JSON object.
Data structure for holding supercell enumeration properties.
size_type end_volume() const
Eigen::Matrix3i generating_matrix() const
size_type begin_volume() const
IdentitySymRepBuilder Identity()
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
void from_json(ClexDescription &desc, const jsonParser &json)
T min(const T &A, const T &B)
void report_and_throw_if_invalid(KwargsParser const &parser, Log &log, ErrorType error)
void parse(InputParser< ConfigEnumOptions > &parser, std::string method_name, PrimClex const &primclex, DataFormatterDictionary< Configuration > const &dict)
T max(const T &A, const T &B)
static ReturnType from_json(const jsonParser &json)
Default from_json is equivalent to.