From bbc4af19bf927f90577b104f426cfd6993fe764a 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/base.py | 2 +- sup3r/preprocessing/extracters/dual.py | 10 ++++++---- 3 files changed, 8 insertions(+), 6 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/base.py b/sup3r/preprocessing/base.py index 631afeb43..f4b3c48ca 100644 --- a/sup3r/preprocessing/base.py +++ b/sup3r/preprocessing/base.py @@ -378,7 +378,7 @@ def get_specific_class(cls, file_arg): msg = ( f'Can only handle H5 or NETCDF files. Received ' f'"{source_type}" for files: {file_arg}' - ) + ) logger.error(msg) raise ValueError(msg) return SpecificClass 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' + )