quick fix for reading vector fields from a file

This commit is contained in:
2024-05-16 10:26:32 +02:00
parent faedddb328
commit b9ad0ce666
+1 -1
View File
@@ -45,7 +45,7 @@ blitz::Array<double, 3> readComponentFromFile(json_t* object, int component) {
std::string absolute_filename =
readAbsoluteFilename(json_object_by_path(object, {"PathToH5"}));
std::string key = json_string(
json_array_get(json_object_by_path(object, {"PathToH5"}), component));
json_array_get(json_object_by_path(object, {"Keys"}), component));
Hdf5Reader reader(absolute_filename);
return reader.readD3Double(key);