fix: load beamline configs from correct dir
CI / lint (pull_request) Successful in 19s
Build and Publish / release (push) Successful in 12s
CI / lint (push) Successful in 17s
CI / test (3.11) (pull_request) Successful in 22s
CI / test (3.12) (pull_request) Successful in 24s
CI / test (3.13) (pull_request) Successful in 21s
CI / test (3.11) (push) Successful in 23s
CI / test (3.12) (push) Successful in 24s
CI / test (3.13) (push) Successful in 22s

This commit was merged in pull request #4.
This commit is contained in:
2026-07-06 11:42:13 +02:00
parent ae1affa9ef
commit 6b40d05a43
5 changed files with 4 additions and 2 deletions
+4 -2
View File
@@ -1,7 +1,9 @@
import os
from pathlib import Path
import yaml
from typing import Any, Dict
import yaml
from aarecommon.models.beamline import MXBeamline
@@ -11,7 +13,7 @@ class BeamlineYAMLConfig:
self.config = self._load_config()
def _load_config(self) -> Dict[str, Any]:
config_dir = Path(__file__).parent / "config"
config_dir = Path(__file__).parent / "beamline_configs"
yaml_file = config_dir / f"{self.beamline.value.lower()}.yaml"
if not yaml_file.exists():