diff --git a/geomagio/metadata/instrument/InstrumentCalibrations.py b/geomagio/metadata/instrument/InstrumentCalibrations.py index 330ab8e89a3e3af46711d9b4ff88ff4fb85b14b3..d3f52a9ad08f473d790ae0ca71533e05f4475093 100644 --- a/geomagio/metadata/instrument/InstrumentCalibrations.py +++ b/geomagio/metadata/instrument/InstrumentCalibrations.py @@ -2,8 +2,6 @@ from obspy import UTCDateTime from geomagio.metadata import Metadata, MetadataFactory, MetadataCategory -# REMOVE ANY INSTRUMENT METADATA ELEMENTS W/ "DATA_VALID=FALSE" - class InstrumentCalibrations: """ @@ -307,8 +305,7 @@ def get_instrument_calibrations( observatory: observatory code start_time: start time to match, or None to match any. end_time: end time to match, or None to match any. - calibrations: use custom list, defaults to pulling and converting instrument metadata - metadata_url: metadata database url + calibrations: use custom list, defaults to pulling and converting metadata Returns: list of applicable instrument calibrations """ @@ -324,12 +321,6 @@ def get_instrument_calibrations( station=observatory, ) metadata = factory.get_metadata(query=query) - - # remove invalid metadata entries - for i, m in enumerate(metadata): - if not m.data_valid: - metadata.pop(i) - instrumentCalibrations = InstrumentCalibrations(metadata) calibrations = instrumentCalibrations.get_calibrations()