Search in sources :

Example 1 with MemoryResultsList

use of uk.ac.sussex.gdsc.smlm.ij.plugins.ResultsManager.MemoryResultsList in project GDSC-SMLM by aherbert.

the class TraceExporter method run.

@Override
public void run(String arg) {
    SmlmUsageTracker.recordPlugin(this.getClass(), arg);
    final MemoryResultsList items = new MemoryResultsList(MemoryPeakResults::hasId);
    if (items.isEmpty()) {
        IJ.error(TITLE, "No traced localisations in memory");
        return;
    }
    // Get input options
    if (!showDialog()) {
        return;
    }
    final ArrayList<MemoryPeakResults> allResults = new ArrayList<>();
    // Pick multiple input datasets together using a list box.
    if (!showMultiDialog(allResults, items)) {
        return;
    }
    for (final MemoryPeakResults results : allResults) {
        export(results);
    }
}
Also used : ArrayList(java.util.ArrayList) MemoryResultsList(uk.ac.sussex.gdsc.smlm.ij.plugins.ResultsManager.MemoryResultsList) MemoryPeakResults(uk.ac.sussex.gdsc.smlm.results.MemoryPeakResults)

Aggregations

ArrayList (java.util.ArrayList)1 MemoryResultsList (uk.ac.sussex.gdsc.smlm.ij.plugins.ResultsManager.MemoryResultsList)1 MemoryPeakResults (uk.ac.sussex.gdsc.smlm.results.MemoryPeakResults)1