Skip to content

Commit

Permalink
modified the verbos status
Browse files Browse the repository at this point in the history
  • Loading branch information
“XYangXRay” committed May 15, 2024
1 parent 004895f commit 9161eaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyCHX/chx_generic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3401,7 +3401,7 @@ def get_sid_filenames(hdr, verbose=False):
else:
if verbose:
print('Found detector filename from "data_path" in metadata!')
success = True
success = True

if not success: # looking at path in metadata, but taking the date from the run start document
data_path = start_doc["data path"][:-11] + strftime("%Y/%m/%d/", localtime(start_doc["time"]))
Expand All @@ -3416,7 +3416,7 @@ def get_sid_filenames(hdr, verbose=False):
else:
if verbose:
print("Found detector filename in %s" % data_path)
success = True
success = True

if (
not success
Expand All @@ -3433,7 +3433,7 @@ def get_sid_filenames(hdr, verbose=False):
else:
if verbose:
print("Found detector filename in %s" % data_path)
success = True
success = True
return ret


Expand Down

0 comments on commit 9161eaf

Please sign in to comment.