Skip to content

Commit

Permalink
BRAYNS-624 Fix sonata report path. (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien4193 authored Apr 4, 2024
1 parent 28a0c04 commit e03334b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions plugins/CircuitExplorer/io/sonataloader/data/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,7 @@ std::string Config::getReportPath(const std::string &reportName) const
{
throw std::runtime_error("No simulation configuration available");
}

auto reports = _simConfig->listReportNames();
if (reports.find(reportName) == reports.end())
{
throw std::invalid_argument("The report does not exists in the network");
}

auto basePath = ReportPathResolver::resolveBasePath(*_simConfig);
return (basePath / std::filesystem::path(reportName + ".h5")).lexically_normal().string();
auto &report = _simConfig->getReport(reportName);
return report.fileName;
}
} // namespace sonataloader

0 comments on commit e03334b

Please sign in to comment.