38 auto lhandle = group.openGroup(
"left");
39 left_details = validate_numeric_seed(lhandle, version, options);
41 std::throw_with_nested(std::runtime_error(
"failed to validate 'left'"));
46 auto rhandle = group.openGroup(
"right");
47 right_details = validate_numeric_seed(rhandle, version, options);
49 std::throw_with_nested(std::runtime_error(
"failed to validate 'right'"));
54 throw std::runtime_error(
"'left' and 'right' should have the same dimensions");
58 auto mhandle = group.openDataSet(
"method");
59 auto method = read_scalar_string_dataset(mhandle);
60 if (!is_valid_logic_operation(method)) {
61 throw std::runtime_error(
"unrecognized operation '" + method +
"'");
64 std::throw_with_nested(std::runtime_error(
"failed to validate 'method'"));
68 left_details.
type = BOOLEAN;
ArrayDetails validate_binary_logic(const H5::Group &group, const ritsuko::Version &version, const Options &options)
Definition binary_logic.hpp:35