Skip to content

Commit

Permalink
Don't log this warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Mar 5, 2024
1 parent ecd2f92 commit 1d3c8d9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions soxs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,14 @@ def fetch(self, fname):


def get_data_file(fn):
if os.path.exists(fn):
mylog.warning("Using local file %s instead of the one from the database.", fn)
rel_fn = os.path.split(fn)[-1]
if os.path.exists(rel_fn):
mylog.warning(
"Using local file %s instead of the one from the database.", rel_fn
)
return fn
else:
return finley.fetch(os.path.split(fn)[-1])
return finley.fetch(rel_fn)


def image_pos(im, nph, prng):
Expand Down

0 comments on commit 1d3c8d9

Please sign in to comment.