From 50fb3b731ca574b8207abb4987cd1387f6843b24 Mon Sep 17 00:00:00 2001 From: ndem0 Date: Thu, 4 Apr 2024 12:42:10 +0000 Subject: [PATCH] :art: Format Python code with psf/black --- pina/callbacks/adaptive_refinment_callbacks.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pina/callbacks/adaptive_refinment_callbacks.py b/pina/callbacks/adaptive_refinment_callbacks.py index 2a6fc19..ec9984d 100644 --- a/pina/callbacks/adaptive_refinment_callbacks.py +++ b/pina/callbacks/adaptive_refinment_callbacks.py @@ -56,11 +56,12 @@ class R3Refinement(Callback): elif precision == "32-true": precision = torch.float32 else: - raise RuntimeError("Currently R3Refinement is only implemented " - "for precision '32-true' and '64-true', set " - "Trainer precision to match one of the " - "available precisions.") - + raise RuntimeError( + "Currently R3Refinement is only implemented " + "for precision '32-true' and '64-true', set " + "Trainer precision to match one of the " + "available precisions." + ) # compute residual res_loss = {}