Fixing the base path loading in the print_run_info
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user