Skip to content

Commit 6297f7c

Browse files
committed
added shift, missing OP summary
1 parent ed1d68a commit 6297f7c

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

docs/logbook/LHC/2025_lhc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The tables below can be sorted by clicking next to the column headers.
2727
| 2025-04-20 16:00 | 2025-04-20 23:00 | 0.2H 0.65HN | Commissioning | NL at injection, IRNL 18cm | [Shift Start](2025-04-20, 1081, 4239958){.logbook-link} / [Summary](2025-04-20, 1081, 4240097){.logbook-link} ([OP](https://be-op-logbook.web.cern.ch/elogbook-server/GET/showEventInLogbook/4240099){.cern_login}) |
2828
| 2025-04-21 17:30 | 2025-04-22 06:00 | 1.6HN | Commissioning | IRNL 1.2m and 18cm | [Shift Start](2025-04-21, 1081, 4240651){.logbook-link} / [Summary](2025-04-22, 1081, 4240898){.logbook-link} ([OP](https://be-op-logbook.web.cern.ch/elogbook-server/GET/showEventInLogbook/4240983){.cern_login}) |
2929
| 2025-04-24 13:00 | 2025-04-25 03:30 | 0.6W 1WN | Commissioning | Global Corrs at 60cm and 18cm and Validation | [Shift Start](2025-04-24, 1081, 4243122){.logbook-link} / [Summary](2025-04-25, 1081, 4243700){.logbook-link} ([OP](https://be-op-logbook.web.cern.ch/elogbook-server/GET/showEventInLogbook/4243717){.cern_login}) |
30+
| 2025-04-27 07:30 | 2025-04-25 21:00 | 1.7H | Commissioning | Validation of Everything | [Shift Start](2025-04-27, 1081, 4245465){.logbook-link} / [Summary](2025-04-27, 1081, 4245531){.logbook-link} ([OP](https://be-op-logbook.web.cern.ch/elogbook-server/GET/showEventInLogbook/xxx){.cern_login}) |
3031
<!-- Logbook Links: [LINK_NAME](date, logbook_id, event_id){.logbook-link} -->
3132

3233
<!-- Tooltips -->
@@ -39,4 +40,5 @@ The tables below can be sorted by clicking next to the column headers.
3940
*[NL at injection, IRNL 18cm]: Chroma scans at injection, reference RDT measurements after 8h at inj and with ecloud tunes, arrived at 18cm but dumped soon.
4041
*[IRNL 1.2m and 18cm]: Validated on/off Momentum at 120cm, and 18cm. Checked sdisp qbump, which did not seem to work. Nonlinear corrections at 18cm: b4, a4 (performed and tested) b3, a3 (only measured/calculated).
4142
*[Global Corrs at 60cm and 18cm and Validation]: Tested SDisp knobs and did a first squeeze down to 18cm with global corrections calculated and incorporated at 60cm and 18cm. Beam dumped twice because of IR5. Validation only up to 4.5TeV but also couldn't kick high.
43+
*[Validation of Everything]: Too many k-mods. Validated 120cm, 93cm, 60cm, 44cm, 30cm, 24cm, 18cm. Later also through the ramp.
4244
--8<-- "docs/logbook/footer_shifts"

scripts/shift_calculations.py

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def plot_all_machines_in_year(
341341
color_map = {name: f"C{ii}" for ii, name in enumerate(["lhc", "sps", "ps", "psb", "leir", "ad", "superkekb"])}
342342

343343
data_map: dict[str, float] = {}
344-
for file_path in logbook_dir.glob(f"{year:4d}_*.md"):
344+
for file_path in logbook_dir.glob(f"**/{year:4d}_*.md"):
345345
machine = file_path.stem.split("_")[1]
346346
if calculate:
347347
shift = calculate_shifts(file_path)
@@ -395,7 +395,7 @@ def plot_all_machines_in_year(
395395
mpl.rcParams["figure.figsize"] = 7.68, 4.8
396396

397397
repo_dir = Path(__file__).parent.parent
398-
logbook_dir = repo_dir / "docs" / "resources" / "logbook"
398+
logbook_dir = repo_dir / "docs" / "logbook"
399399

400400
# 2022 ---------------------------------------------------------------------
401401

@@ -419,11 +419,38 @@ def plot_all_machines_in_year(
419419
# shift_m = manual_shifts(logbook_dir / "2023_psb.md")
420420
# plot_results(shift_m, title="OMC Shifts PSBooster 2023", output_path="psb_2023_shifts.pdf")
421421

422+
# plot_all_machines_in_year(2023, additional={}, output_path="machines_2023.pdf")
423+
422424
# 2024 ---------------------------------------------------------------------
423425

424-
# shift_m = manual_shifts(logbook_dir / "2024_lhc.md")
426+
# shift_m = manual_shifts(logbook_dir / "LHC" / "2024_lhc.md")
425427
# plot_results(shift_m, title="OMC Shifts LHC 2024", output_path="lhc_2024_shifts.pdf")
426428

429+
shift_m = manual_shifts(logbook_dir / "LHC" /"2024_lhc.md", shift_type="Commissioning")
430+
plot_results(shift_m, title="OMC Shifts LHC 2024 (Commissioning)", output_path="lhc_2024_shifts_commish.pdf")
431+
432+
# shift_m = manual_shifts(logbook_dir / "2024_lhc.md", shift_type="MD")
433+
# plot_results(shift_m, title="OMC Shifts LHC 2024 (MDs)", output_path="lhc_2024_shifts_md.pdf")
434+
435+
# shift_m = manual_shifts(logbook_dir / "2024_ps.md")
436+
# plot_results(shift_m, title="OMC Shifts PS 2024", output_path="ps_2024_shifts.pdf")
437+
438+
# shift_m = manual_shifts(logbook_dir / "2024_psb.md")
439+
# plot_results(shift_m, title="OMC Shifts PSBooster 2024", output_path="psb_2024_shifts.pdf")
440+
441+
# shift_m = manual_shifts(logbook_dir / "2024_sps.md")
442+
# plot_results(shift_m, title="OMC Shifts SPS 2024", output_path="sps_2024_shifts.pdf")
443+
444+
# plot_all_machines_in_year(2024, {"leir": 9, "superkekb": 4}, output_path="machines_2024.pdf")
445+
446+
# 2025 ---------------------------------------------------------------------
447+
448+
shift_m = manual_shifts(logbook_dir / "LHC" / "2025_lhc.md")
449+
plot_results(shift_m, title="OMC Shifts LHC 2025", output_path="lhc_2025_shifts.pdf")
450+
451+
# shift_m = calculate_shifts(logbook_dir / "LHC" /"2025_lhc.md")
452+
# plot_results(shift_m, title="OMC Shifts LHC 2025", output_path="lhc_2025_shifts_calc.pdf")
453+
427454
# shift_m = manual_shifts(logbook_dir / "2024_lhc.md", shift_type="Commissioning")
428455
# plot_results(shift_m, title="OMC Shifts LHC 2024 (Commissioning)", output_path="lhc_2024_shifts_commish.pdf")
429456

@@ -441,8 +468,7 @@ def plot_all_machines_in_year(
441468

442469
# plot_all_machines_in_year(2023, additional={}, output_path="machines_2023.pdf")
443470

444-
plot_all_machines_in_year(2024, {"leir": 9, "superkekb": 4}, output_path="machines_2024.pdf")
445-
471+
# plot_all_machines_in_year(2024, {"leir": 9, "superkekb": 4}, output_path="machines_2024.pdf")
446472

447473
plt.show()
448474

0 commit comments

Comments
 (0)