From 53d1c667c6cdfdc69433531587d6e2abc32d9d79 Mon Sep 17 00:00:00 2001 From: bnb32 Date: Mon, 1 Jul 2024 07:51:09 -0600 Subject: [PATCH] linting --- sup3r/models/abstract.py | 2 +- sup3r/preprocessing/extracters/dual.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sup3r/models/abstract.py b/sup3r/models/abstract.py index c36e9429b..f19b8d4b1 100644 --- a/sup3r/models/abstract.py +++ b/sup3r/models/abstract.py @@ -1490,7 +1490,7 @@ def get_single_grad(self, hi_res_exo = self.timer(self.get_high_res_exo_input)(hi_res_true) hi_res_gen = self.timer(self._tf_generate)(low_res, hi_res_exo) loss_out = self.timer(self.calc_loss)(hi_res_true, hi_res_gen, - **calc_loss_kwargs) + **calc_loss_kwargs) loss, loss_details = loss_out grad = self.timer(tape.gradient)(loss, training_weights) return grad, loss_details diff --git a/sup3r/preprocessing/extracters/dual.py b/sup3r/preprocessing/extracters/dual.py index de56e5fbb..e40fb3753 100644 --- a/sup3r/preprocessing/extracters/dual.py +++ b/sup3r/preprocessing/extracters/dual.py @@ -220,9 +220,11 @@ def check_regridded_lr_data(self): warn(msg) if any(fill_feats): - msg = ('Doing nearest neighbor nan fill on low_res data for ' - f'features = {fill_feats}') + msg = ( + 'Doing nearest neighbor nan fill on low_res data for ' + f'features = {fill_feats}' + ) logger.info(msg) self.lr_data = self.lr_data.interpolate_na( - features=fill_feats, method='nearest' - ) + features=fill_feats, method='nearest' + )