fix: load beamline configs from correct dir #4

Merged
perl_d merged 1 commits from fix/beamline_configs into main 2026-07-06 11:44:02 +02:00
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():