Minor bugfixes from last commit.

This commit is contained in:
Karthik 2025-08-23 21:23:33 +02:00
parent 2abbefb3a7
commit bc1c3e287a
4 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ function [results, scan_parameter_values] = performAnalysis(options)
options.saveDirectory (1,:) char options.saveDirectory (1,:) char
options.titleString (1,:) char options.titleString (1,:) char
options.font (1,:) char options.font (1,:) char
options.SAVE_TO_WORKSPACE (1,1) logical
end end
% Collect OD images % Collect OD images

View File

@ -10,7 +10,7 @@ function results_all = batchAnalyze(dataSources, options)
end end
% ===== Estimate dataset memory and get per-run estimates ===== % ===== 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 results_all = {}; % one element per folder

View File

@ -56,7 +56,7 @@ function [SAVE_TO_WORKSPACE, runMemoryGB] = estimateDatasetMemory(dataSources, o
runMemoryGB(end+1,1) = runBytes/1e9; runMemoryGB(end+1,1) = runBytes/1e9;
% Decide workspace flag per run by comparing with 50% of available RAM % 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; SAVE_TO_WORKSPACE = false;
fprintf('[INFO] Estimated size on memory of Run %s/%s too large (%.2f GB). Not saving to workspace.\n', ... fprintf('[INFO] Estimated size on memory of Run %s/%s too large (%.2f GB). Not saving to workspace.\n', ...
ds.sequence, runID, runBytes/1e9); ds.sequence, runID, runBytes/1e9);

View File

@ -4,7 +4,7 @@
dataSources = { dataSources = {
struct('sequence', 'StructuralPhaseTransition', ... struct('sequence', 'StructuralPhaseTransition', ...
'date', '2025/08/16', ... '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(); options = struct();