From 6d1dd9e49860e575b8806a5c63566a6daae62d54 Mon Sep 17 00:00:00 2001 From: Danilo Ferreira de Lima <danilo.enoque.ferreira.de.lima@xfel.de> Date: Tue, 20 Feb 2024 13:44:39 +0100 Subject: [PATCH] Created VS configuration. --- pes_to_spec/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pes_to_spec/config.py b/pes_to_spec/config.py index d4dfab5..d51c58c 100644 --- a/pes_to_spec/config.py +++ b/pes_to_spec/config.py @@ -66,7 +66,7 @@ class VSConfig(object): if m is not None and len(m.groups()) >= 1: name = m.groups()[0] out.voltage_mean[name] = run[VSConfig.voltage_source, f"{name}.value"].ndarray().mean() - out.voltage_std[name] = run[VSConfguration.voltage_source, f"{name}.value"].ndarray().std() + out.voltage_std[name] = run[VSConfig.voltage_source, f"{name}.value"].ndarray().std() for gas in VSConfig.gas_sources: # check if this gas source is interlocked @@ -90,7 +90,7 @@ class VSConfig(object): errors += [f"Multiple gas active during the data: {self.gas_active}."] return errors - def __sub__(self, other: VSConfig) -> VSConfig: + def __sub__(self, other: 'VSConfig') -> 'VSConfig': """ Take difference between two configuratons. """ @@ -101,7 +101,7 @@ class VSConfig(object): diff.gas_active = set(self.gas_active).difference(set(other.gas_active)) return diff - def __eq__(self, other) -> bool: + def __eq__(self, other: 'VSConfig') -> bool: """ Check if two configurations match. """ -- GitLab