Minor bugfixes from last commit.
This commit is contained in:
parent
2abbefb3a7
commit
bc1c3e287a
@ -41,6 +41,7 @@ function [results, scan_parameter_values] = performAnalysis(options)
|
||||
options.saveDirectory (1,:) char
|
||||
options.titleString (1,:) char
|
||||
options.font (1,:) char
|
||||
options.SAVE_TO_WORKSPACE (1,1) logical
|
||||
end
|
||||
|
||||
% Collect OD images
|
||||
|
@ -10,7 +10,7 @@ function results_all = batchAnalyze(dataSources, options)
|
||||
end
|
||||
|
||||
% ===== Estimate dataset memory and get per-run estimates =====
|
||||
[options.SAVE_TO_WORKSPACE, runMemoryGB] = estimateDatasetMemory(dataSources, options);
|
||||
[options.SAVE_TO_WORKSPACE, runMemoryGB] = Helper.estimateDatasetMemory(dataSources, options);
|
||||
|
||||
results_all = {}; % one element per folder
|
||||
|
||||
|
@ -56,7 +56,7 @@ function [SAVE_TO_WORKSPACE, runMemoryGB] = estimateDatasetMemory(dataSources, o
|
||||
runMemoryGB(end+1,1) = runBytes/1e9;
|
||||
|
||||
% Decide workspace flag per run by comparing with 50% of available RAM
|
||||
if runBytes > 0.5 * availableRAM
|
||||
if runBytes > 0.75 * availableRAM
|
||||
SAVE_TO_WORKSPACE = false;
|
||||
fprintf('[INFO] Estimated size on memory of Run %s/%s too large (%.2f GB). Not saving to workspace.\n', ...
|
||||
ds.sequence, runID, runBytes/1e9);
|
||||
|
@ -4,7 +4,7 @@
|
||||
dataSources = {
|
||||
struct('sequence', 'StructuralPhaseTransition', ...
|
||||
'date', '2025/08/16', ...
|
||||
'runs', [8]) % specify run numbers as a string in "" or just as a numeric value
|
||||
'runs', [9]) % specify run numbers as a string in "" or just as a numeric value
|
||||
};
|
||||
|
||||
options = struct();
|
||||
|
Loading…
Reference in New Issue
Block a user