From 2cb826c43c26b2fa9a25193eb1888cb453600a84 Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Fri, 2 Oct 2026 12:56:20 +0200 Subject: [PATCH] rstrip bug fixed --- eos/reduction_reflectivity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eos/reduction_reflectivity.py b/eos/reduction_reflectivity.py index 685f094..7091725 100644 --- a/eos/reduction_reflectivity.py +++ b/eos/reduction_reflectivity.py @@ -125,8 +125,8 @@ class ReflectivityReduction: _sampleName = 'unknown' _mu = int(self.dataset.geometry.mu * 3) self.config.output.outputName = f'{_sampleName}_{_mu:03}_{_date}' - else: - self.config.output.outputName = self.config.output.outputName.rstrip('.Rqz.ort') + elif self.config.output.outputName.endswith('.Rqz.ort'): + self.config.output.outputName = self.config.output.outputName[:-len('.Rqz.ort')] logging.warning('output:')