Skip to content

Commit

Permalink
Re #944 fixed recalculate_runid_map in case of the same headers extra…
Browse files Browse the repository at this point in the history
…cted from filenames
  • Loading branch information
abuts committed Feb 13, 2023
1 parent b57a1f4 commit 2af3fba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions horace_core/sqw/@sqw/private/recalculate_runid_map_.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
% duplicated headers unique
runids = header_numbers;
end
if numel(unique(runids)) ~= numel(headers) % probably its incorrect run_id extraction
% or duplicated headers were modified incorrectly
runids = header_numbers;
end
if isempty(runids)
runid_map = containers.Map();
else
Expand Down

0 comments on commit 2af3fba

Please sign in to comment.