diff --git a/pyproject.toml b/pyproject.toml index 2c61d77..0143cf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ requires-python = ">=3.10" description = "Library for Acoustic Signal Processing" license = { "file" = "LICENSE" } authors = [{ "name" = "J.A. de Jong", "email" = "j.a.dejong@ascee.nl" }] -version = "1.5.1" +version = "1.6.0" keywords = ["DSP", "DAQ", "Signal processing"] diff --git a/python_src/lasp/lasp_measurementset.py b/python_src/lasp/lasp_measurementset.py index 51b84f4..9249c34 100644 --- a/python_src/lasp/lasp_measurementset.py +++ b/python_src/lasp/lasp_measurementset.py @@ -44,6 +44,17 @@ class MeasurementSet(list): if mnewest.time < m.time: mnewest = m return mnewest + + def getReferenceMeasurements(self, mtype: MeasurementType): + """Get all reference measurements of a certain type + + Args: + mtype (MeasurementType): The type of which to list + + Returns: + a new measurement set including all measurements of a certain type + """ + return [m for m in self if m.measurementType() == mtype] def getNewestReferenceMeasurements(self): """Returns a dictionary with newest measurement of each type that is not specific returns None in case no measurement is found."""