From e135a4c38cd9490bae2adb27a6f897140851920a Mon Sep 17 00:00:00 2001 From: rstiskalek Date: Tue, 17 Sep 2024 10:26:14 +0100 Subject: [PATCH] More verbosity optiosn --- csiborgtools/read/paths.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/csiborgtools/read/paths.py b/csiborgtools/read/paths.py index 83c55f8..3975aa8 100644 --- a/csiborgtools/read/paths.py +++ b/csiborgtools/read/paths.py @@ -673,7 +673,8 @@ class Paths: mag_selection=None, sample_alpha=False, sample_beta=False, no_Vext=None, sample_Vmono=False, sample_mag_dipole=False, - sample_curvature=False, absolute_calibration=None): + sample_curvature=False, absolute_calibration=None, + verbose_print=True): """Flow validation file path.""" if isinstance(catalogue, list) and len(catalogue) == 1: catalogue = catalogue[0] @@ -705,7 +706,7 @@ class Paths: fname = fname.strip("_") fname = join(fdir, f"{fname}.hdf5") # Print the last modified time of the file if it exists. - if exists(fname): + if verbose_print and exists(fname): mtime = getmtime(fname) mtime = datetime.datetime.fromtimestamp(mtime) mtime = mtime.strftime("%d/%m/%Y %H:%M:%S")