From bb036cba1f4f61f7e7734ec0955a6acf63ba866c Mon Sep 17 00:00:00 2001 From: martin-rdz Date: Thu, 10 Sep 2026 13:43:31 +0000 Subject: [PATCH] issue #99 quickfix --- ppcpy/qc/overlapCor.py | 6 +++--- ppcpy/retrievals/raman.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ppcpy/qc/overlapCor.py b/ppcpy/qc/overlapCor.py index eb1946a..55345a0 100644 --- a/ppcpy/qc/overlapCor.py +++ b/ppcpy/qc/overlapCor.py @@ -85,7 +85,7 @@ def spread(data_cube): if len(olFuncs) > 1: ## Use different overlap function for different times, centered around theire cloud free period. - logging.info(f'Using time-varying ovrlap function for channel for channel: {channel.replace('_', ' ')}.') + logging.info(f"Using time-varying ovrlap function for channel for channel: {channel.replace('_', ' ')}.") olFunc_2d = np.zeros((2*len(olFuncs), height.shape[0])) ## Set the estimated overlap profiles to the beginning and end of the profile @@ -103,7 +103,7 @@ def spread(data_cube): else: ## Use same olFunc function for all timestamps. - logging.info(f'Using time-constant overlap function for channel: {channel.replace('_', ' ')}.') + logging.info(f"Using time-constant overlap function for channel: {channel.replace('_', ' ')}.") ol = olFuncs[0]['olFunc'] olFunc_2d = np.repeat(ol[np.newaxis, :], time.shape[0], axis=0) @@ -241,4 +241,4 @@ def hFullOLbyGrp(clFreeGrps, heightFullOverCor): print(heightFullOverCor.shape) ret = [np.mean(heightFullOverCor[slice(*cF)], axis=0) for cF in clFreeGrps] - print(ret) \ No newline at end of file + print(ret) diff --git a/ppcpy/retrievals/raman.py b/ppcpy/retrievals/raman.py index e134f72..359c23d 100644 --- a/ppcpy/retrievals/raman.py +++ b/ppcpy/retrievals/raman.py @@ -98,7 +98,7 @@ def run_cldFreeGrps(data_cube, signal:str='TCor', heightFullOverlap:list=None, n # Check availability of Raman channel during retireval priod if data_cube.retrievals_profile[f'mask{wv_r}Off'][i] > 0: - logging.warning(f'Channel {wv_r} {t_r} {tel_r} was not opertional {data_cube.retrievals_profile[f'mask{wv_r}Off'][i]*100:.2f}% of the profile retrieval period.') + logging.warning(f"Channel {wv_r} {t_r} {tel_r} was not opertional {data_cube.retrievals_profile[f'mask{wv_r}Off'][i]*100:.2f}% of the profile retrieval period.") # .. TODO:: add this information to a quality flag for the profile based on how long wv_r was unoperational. if data_cube.retrievals_profile[f'mask{wv_r}Off'][i] > 0.5: # <-- .. TODO:: decide on a treshold for skipping the channel processing. logging.warning('Skipping Raman retrival for this channel.')