Skip to content
Snippets Groups Projects
Commit 6d1dd9e4 authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Created VS configuration.

parent b3dfd841
No related branches found
No related tags found
1 merge request!26Added example for SCS.
Pipeline #131761 passed
......@@ -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.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment