33 auto lhandle = group.openGroup(
"left");
34 left_details = validate_numeric_seed(lhandle, version, options);
36 std::throw_with_nested(std::runtime_error(
"failed to validate 'left'"));
41 auto rhandle = group.openGroup(
"right");
42 right_details = validate_numeric_seed(rhandle, version, options);
44 std::throw_with_nested(std::runtime_error(
"failed to validate 'right'"));
49 throw std::runtime_error(
"'left' and 'right' should have the same dimensions");
53 auto mhandle = group.openDataSet(
"method");
54 auto method = read_scalar_string_dataset(mhandle);
55 if (!is_valid_logic_operation(method)) {
56 throw std::runtime_error(
"unrecognized operation '" + method +
"'");
59 std::throw_with_nested(std::runtime_error(
"failed to validate 'method'"));
63 left_details.
type = BOOLEAN;
ArrayDetails validate_binary_logic(const H5::Group &group, const ritsuko::Version &version, const Options &options)
Definition binary_logic.hpp:30