Skip to content
Snippets Groups Projects
Commit 61a8a4ae authored by Tom Titcombe's avatar Tom Titcombe
Browse files

Add metadata before copying metadata across all workspaces

Refs #24583
parent 9c1cac45
No related branches found
No related tags found
No related merge requests found
......@@ -688,6 +688,17 @@ void LoadEventNexus::loadEvents(API::Progress *const prog,
m_ws->mutableRun().addProperty("run_start", run_start.toISO8601String(),
true);
}
// set more properties on the workspace
try {
// this is a static method that is why it is passing the
// file object and the file path
loadEntryMetadata<EventWorkspaceCollection_sptr>(m_filename, m_ws,
m_top_entry_name);
} catch (std::runtime_error &e) {
// Missing metadata is not a fatal error. Log and go on with your life
g_log.error() << "Error loading metadata: " << e.what() << '\n';
}
m_ws->setNPeriods(
static_cast<size_t>(nPeriods),
periodLog); // This is how many workspaces we are going to make.
......@@ -776,17 +787,6 @@ void LoadEventNexus::loadEvents(API::Progress *const prog,
if (AnalysisDataService::Instance().doesExist(outName))
AnalysisDataService::Instance().remove(outName);
// set more properties on the workspace
try {
// this is a static method that is why it is passing the
// file object and the file path
loadEntryMetadata<EventWorkspaceCollection_sptr>(m_filename, m_ws,
m_top_entry_name);
} catch (std::runtime_error &e) {
// Missing metadata is not a fatal error. Log and go on with your life
g_log.error() << "Error loading metadata: " << e.what() << '\n';
}
// --------------------------- Time filtering
// ------------------------------------
double filter_time_start_sec, filter_time_stop_sec;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment