From 899c3210d4b5b2565327bc71102fc86465511e29 Mon Sep 17 00:00:00 2001 From: hechth Date: Tue, 30 Jan 2024 12:57:01 +0100 Subject: [PATCH] removed exception of RI is not present --- RIAssigner/data/PandasData.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RIAssigner/data/PandasData.py b/RIAssigner/data/PandasData.py index 83950b0..4f5fa85 100644 --- a/RIAssigner/data/PandasData.py +++ b/RIAssigner/data/PandasData.py @@ -105,9 +105,7 @@ def retention_indices(self) -> Iterable[Data.RetentionIndexType]: """ Get retention indices from data or computed from carbon numbers. """ if self._carbon_number_index is not None: return self._ri_from_carbon_numbers() - if not self._data[self._ri_index].isnull().all(): - return self._data[self._ri_index] - raise KeyError("Dataset does not contain retention indices!") + return self._data[self._ri_index] def _ri_from_carbon_numbers(self): """ Returns the RI of compound based on carbon number. """