Skip to content
Snippets Groups Projects
Commit e5c4f909 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Implemented append, extend, insert methods from super class with a check that...

Implemented append, extend, insert methods from super class with a check that makes sure that the interferometers stay consistent.
parent 23010ae8
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,18 @@ class InterferometerSet(list):
def frequency_array(self):
return self[0].strain_data.frequency_array
def append(self, interferometer):
super(InterferometerSet, self).append(interferometer)
self._check_interferometers()
def extend(self, interferometers):
super(InterferometerSet, self).extend(interferometers)
self._check_interferometers()
def insert(self, index, interferometer):
super(InterferometerSet, self).insert(index, interferometer)
self._check_interferometers()
class InterferometerStrainData(object):
""" Strain data for an interferometer """
......
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