Skip to content

Commit f79f9f5

Browse files
committed
remove print statements
1 parent d79cc65 commit f79f9f5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

gnss_lib_py/utils/ephemeris_downloader.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ def load_ephemeris(file_type, gps_millis,
178178
download_directory, verbose)
179179
except ftplib.error_perm as err:
180180
# try second options for some files
181-
print(err)
182-
print("Retrying download...")
181+
if verbose:
182+
print(err)
183+
print("Retrying download...")
183184
if "Connection timed out" in str(err): #pragma: no cover
184185
pass
185186
elif "WUM0MGXFIN" in str(err):
@@ -772,9 +773,7 @@ def _valid_ephemeris_in_paths(date, possible_types, file_paths=None):
772773
for path in file_paths: # exact file match
773774
if os.path.split(path)[1] + ".Z" == os.path.split(recommended_file[1])[1]:
774775
return True, path
775-
print("2. looking for:",os.path.split(recommended_file[1])[1][3:])
776776
for path in file_paths: # other short form files
777-
print("2. found path:",os.path.split(path)[1][3:] + ".Z")
778777
if os.path.split(path)[1][3:] + ".Z" == os.path.split(recommended_file[1])[1][3:]:
779778
return True, path
780779
for path in file_paths: # other long form files

0 commit comments

Comments
 (0)