diff --git a/src/cristallina/utils.py b/src/cristallina/utils.py index 8a252fb..668de38 100644 --- a/src/cristallina/utils.py +++ b/src/cristallina/utils.py @@ -6,13 +6,14 @@ from xraydb import material_mu def print_run_info( - run_number=42, print_channels=True, extra_verbose=False, base_path="/sf/cristallina/data/p19739/raw/" + run_number=42, print_channels=True, extra_verbose=False, base_path=None, ): """Prints overview of run information. Extra verbose output contains all files and pids. """ - + if base_path == None: + base_path = heuristic_extract_base_path() scan = SFScanInfo(f"{base_path}/run{run_number:04}/meta/scan.json") short = {}