88import matplotlib as mpl
99from matplotlib import pyplot as plt
1010from matplotlib .figure import Figure
11- from scripts . parse_md_table import parse_file
11+ from parse_md_table import parse_file
1212
1313
1414# Check dates ------------------------------------------------------------------
@@ -383,6 +383,11 @@ def plot_all_machines_in_year(
383383 repo_dir = Path (__file__ ).parent .parent
384384 logbook_dir = repo_dir / "docs" / "resources" / "logbook"
385385
386+ # 2022 ---------------------------------------------------------------------
387+
388+ shift_m = manual_shifts (logbook_dir / "2022_lhc.md" )
389+ plot_results (shift_m , title = "OMC Shifts LHC 2022" , output_path = "lhc_2022_shifts.pdf" )
390+
386391 # 2023 ---------------------------------------------------------------------
387392
388393 # shift_c = calculate_shifts(logbook_dir / "2023_lhc.md")
@@ -391,8 +396,8 @@ def plot_all_machines_in_year(
391396 # shift_c = calculate_shifts(logbook_dir / "2023_ps.md")
392397 # plot_results(shift_c, title="OMC Shifts PS 2023 (from Start/End)")
393398
394- # shift_m = manual_shifts(logbook_dir / "2023_lhc.md")
395- # plot_results(shift_m, title="OMC Shifts LHC 2023", output_path="lhc_2023_shifts.pdf")
399+ shift_m = manual_shifts (logbook_dir / "2023_lhc.md" )
400+ plot_results (shift_m , title = "OMC Shifts LHC 2023" , output_path = "lhc_2023_shifts.pdf" )
396401
397402 # shift_m = manual_shifts(logbook_dir / "2023_ps.md")
398403 # plot_results(shift_m, title="OMC Shifts PS 2023", output_path="ps_2023_shifts.pdf")
@@ -402,8 +407,8 @@ def plot_all_machines_in_year(
402407
403408 # 2024 ---------------------------------------------------------------------
404409
405- # shift_m = manual_shifts(logbook_dir / "2024_lhc.md")
406- # plot_results(shift_m, title="OMC Shifts LHC 2024", output_path="lhc_2024_shifts.pdf")
410+ shift_m = manual_shifts (logbook_dir / "2024_lhc.md" )
411+ plot_results (shift_m , title = "OMC Shifts LHC 2024" , output_path = "lhc_2024_shifts.pdf" )
407412
408413 # shift_m = manual_shifts(logbook_dir / "2024_lhc.md", shift_type="Commissioning")
409414 # plot_results(shift_m, title="OMC Shifts LHC 2024 (Commissioning)", output_path="lhc_2024_shifts_commish.pdf")
@@ -420,7 +425,7 @@ def plot_all_machines_in_year(
420425 # shift_m = manual_shifts(logbook_dir / "2024_sps.md")
421426 # plot_results(shift_m, title="OMC Shifts SPS 2024", output_path="sps_2024_shifts.pdf")
422427
423- plot_all_machines_in_year (2024 , {"leir" : 19 }, output_path = "machines_2024.pdf" )
428+ # plot_all_machines_in_year(2024, {"leir": 19}, output_path="machines_2024.pdf")
424429
425430
426431 plt .show ()
0 commit comments