From 0f1141b9cee8ad6b75672db561b8367046870052 Mon Sep 17 00:00:00 2001 From: ndaelman Date: Thu, 16 Jan 2025 22:03:41 +0100 Subject: [PATCH] Apply ruff formatting --- electronicparsers/quantumespresso/parser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/electronicparsers/quantumespresso/parser.py b/electronicparsers/quantumespresso/parser.py index f220a927..92a06f60 100644 --- a/electronicparsers/quantumespresso/parser.py +++ b/electronicparsers/quantumespresso/parser.py @@ -3496,7 +3496,12 @@ def parse_method(self, run): if (n_electrons := run.get_header('number_of_electrons')) is not None: sec_method.electronic.n_electrons = n_electrons - elif len(n_spin_electrons := list(run.get_header('number_of_spin_electrons', []))) == 2: + elif ( + len( + n_spin_electrons := list(run.get_header('number_of_spin_electrons', [])) + ) + == 2 + ): sec_method.electronic.n_electrons = sum(n_spin_electrons) def init_parser(self):