use of gdsc.smlm.ij.plugins.LoadLocalisations.LocalisationList in project GDSC-SMLM by aherbert.
the class CreateData method getSimulationResults.
private MemoryPeakResults getSimulationResults() {
if (benchmarkAuto) {
// Load directly from a results file. This is mainly to be used to load simulations
// saved to memory then saved to file. This is because the z-depth must be in the
// error field of the results.
PeakResultsReader r = new PeakResultsReader(benchmarkFile);
MemoryPeakResults results = r.getResults();
if (results != null) {
ResultsManager.checkCalibration(results);
return results;
}
}
// Load using a universal text file
LocalisationList localisations = LoadLocalisations.loadLocalisations(benchmarkFile);
if (localisations.isEmpty())
return null;
return localisations.toPeakResults();
}
Aggregations