Skip to content

Commit

Permalink
source_residuals: sort residual files before processing
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Jan 10, 2025
1 parent 031db4c commit eabe631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourcespec/source_residuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def read_residuals(resfiles_dir):
if not resfiles:
sys.exit(f'No residual file found in directory: {resfiles_dir}')
residual_dict = defaultdict(SpectrumStream)
for resfile in resfiles:
for resfile in sorted(resfiles):
print(f'Found residual file: {resfile}')
residual_st = read_spectra(resfile)
for spec in residual_st:
Expand Down

0 comments on commit eabe631

Please sign in to comment.