Skip to content
Snippets Groups Projects
Commit c90d6a0f authored by Christophe Le Bourlot's avatar Christophe Le Bourlot
Browse files

change grain_*.mat to grain_details_*.mat have a better regex and target only the desired files

parent c15f35a8
Branches main
Tags v0.4.5
No related merge requests found
...@@ -46,7 +46,7 @@ if ~isempty(dates_fsim) ...@@ -46,7 +46,7 @@ if ~isempty(dates_fsim)
% check if grain_####.mat is up to date (only those existing) % check if grain_####.mat is up to date (only those existing)
is_uptodate = false(1, length(grain)); is_uptodate = false(1, length(grain));
list_grains = dir(fullfile( '4_grains',['phase_' sprintf('%02d',phase_num)],'grain_*.mat')); list_grains = dir(fullfile( '4_grains',['phase_' sprintf('%02d',phase_num)],'grain_details_*.mat'));
for ii = 1 : length(list_grains) for ii = 1 : length(list_grains)
if datenum(list_grains(ii).date,'dd-mmm-yyyy') >= datemax if datenum(list_grains(ii).date,'dd-mmm-yyyy') >= datemax
is_uptodate(ii) = true; is_uptodate(ii) = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment