49 "Error reading orbit generating clusters: Expected a JSON array");
54 notstd::make_unique<std::vector<IntegralClusterOrbitGenerator>>();
55 auto &custom_generators = *parser.value;
59 for (
auto it = json.
begin(); it != json.
end(); ++it) {
64 if (subparser->valid()) {
66 bool include_subclusters;
67 parser.optional_else(include_subclusters,
68 relpath /
"include_subclusters",
true);
70 custom_generators.emplace_back(*(subparser->value),
77 }
catch (std::exception &e) {
79 std::string(
"Error: Could not read orbit generating clusters: ") +
Structure specifies the lattice and atomic basis of a crystal.
iterator begin()
Returns const_iterator to beginning of JSON object or JSON array.
iterator end()
Returns iterator to end of JSON object or JSON array.
bool is_array() const
Check if array type.
std::string to_string(ENUM val)
Return string representation of enum class.
jsonParser & to_json(const ClexDescription &desc, jsonParser &json)
INDEX_TYPE Index
For long integer indexing:
void parse(InputParser< ConfigEnumOptions > &parser, std::string method_name, PrimClex const &primclex, DataFormatterDictionary< Configuration > const &dict)
IntegralCluster prototype