Fixing the base path loading in the print_run_info

This commit is contained in:
2022-08-29 20:44:07 +02:00
parent c532f9ad2d
commit da14c9bfda

View File

@@ -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 = {}