diff --git a/specific/configuration/flexible_acquisition.cpp b/specific/configuration/flexible_acquisition.cpp index cac4467e9858345a8646c289046fc8b1ed852991..4d95cb7a8561786645357ae5fd77f9fba3845186 100644 --- a/specific/configuration/flexible_acquisition.cpp +++ b/specific/configuration/flexible_acquisition.cpp @@ -56,17 +56,20 @@ namespace flexible_acquisition } // SETUP FROM YAML - // TODO read path - - ShotsConfigurationYAML shotsConfig("shots.yaml"); + std::string shotsPath; + if (!gmshFem.userDefinedParameter(shotsPath, "shots_config")) + { + throw common::Exception("Path to a shots_config is needed in flexible_acquisition."); + } + ShotsConfigurationYAML shotsConfig(shotsPath); _ns = shotsConfig.numShots(); // Configure points - for (const auto &coords: shotsConfig.points()) { - _er_positions.push_back(coords); + for (const auto &coords : shotsConfig.points()) + { + _er_positions.push_back(coords); } - mesh();