Skip to content

Commit

Permalink
sorted with xml orbit files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Aug 29, 2023
1 parent 59e3137 commit d1eeabc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/RAiDER/losreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ def get_sv(los_file: Union[str, list, PosixPath],
try:
los_files = [los_file] if isinstance(los_file, (str, PosixPath)) else los_file
# Do not need duplicate xml files
los_files = list(set(los_files))
# It appears that we want to make sure that we get data from first available orbit file first in our tests
# TODO: figure out why - maybe tests data occur before midnight and has to do with midnight crossing
# Will need to more thoroughly test and investigate the `sorted` piece
los_files = sorted(list(set(los_files)))

def filter_ESA_orbit_file_p(path: str) -> bool:
return filter_ESA_orbit_file(path, ref_time)
Expand Down

0 comments on commit d1eeabc

Please sign in to comment.