beamlin: renamed second BeamlineConfig to BeamlineYAMLCOnfig
This commit is contained in:
@@ -12,7 +12,7 @@ class MXBeamline(Enum):
|
||||
SIMULATED = "SIMULATED"
|
||||
|
||||
|
||||
class BeamlineConfig:
|
||||
class BeamlineYAMLConfig:
|
||||
def __init__(self):
|
||||
self.beamline: MXBeamline = mx_beamline()
|
||||
self.config = self._load_config()
|
||||
@@ -52,8 +52,8 @@ def get_jfjoch_url(bl: MXBeamline) -> str:
|
||||
case _:
|
||||
raise ValueError(f"unknown beamline {bl}")
|
||||
|
||||
def get_beamline_config() -> BeamlineConfig:
|
||||
beamline_config = BeamlineConfig()
|
||||
def get_beamline_config() -> BeamlineYAMLConfig:
|
||||
beamline_config = BeamlineYAMLConfig()
|
||||
return beamline_config
|
||||
|
||||
def cfg_get(path: str, default: Any = None) -> Any:
|
||||
@@ -119,4 +119,4 @@ def daq_base_url() -> str | None:
|
||||
|
||||
# Global instance for easy import
|
||||
if __name__ == "__main__":
|
||||
beamline_config = BeamlineConfig()
|
||||
beamline_config = BeamlineYAMLConfig()
|
||||
Reference in New Issue
Block a user