Commit 944ddd77 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Make LALInferenceMCMC store injection sample too

parent 9083552a
......@@ -1414,6 +1414,13 @@ void LALInferenceWriteMCMCSamples(LALInferenceRunState *runState) {
}
/* TODO: Write metadata */
LALInferenceVariables *injParams = NULL;
if ( (injParams=LALInferencePrintInjectionSample(runState)) )
{
LALInferenceH5VariablesArrayToDataset(group, &injParams, 1, "injection_params");
LALInferenceClearVariables(injParams);
XLALFree(injParams);
}
}
XLALH5FileClose(group);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment