From 4c3e0fd6ad784ba10d6550acde222d45c776ebbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20P=2E=20P=C3=A9ba=C3=BF?= Date: Wed, 18 Dec 2024 16:25:23 -0500 Subject: [PATCH] #566: whitespace cleanup and other improvements --- src/lbaf/Applications/LBAF_app.py | 3 ++- src/lbaf/IO/lbsVTDataWriter.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lbaf/Applications/LBAF_app.py b/src/lbaf/Applications/LBAF_app.py index 2447d643..e1d54b71 100644 --- a/src/lbaf/Applications/LBAF_app.py +++ b/src/lbaf/Applications/LBAF_app.py @@ -652,7 +652,8 @@ def run(self, cfg=None, cfg_dir=None): # Report on rebalanced phase when available if rebalanced_phase: - l_stats, w_stats = self.__print_statistics(rebalanced_phase, "rebalanced", runtime.get_work_model()) + l_stats, w_stats = self.__print_statistics( + rebalanced_phase, "rebalanced", runtime.get_work_model()) with open( "imbalance.txt" if self.__parameters.output_dir is None else os.path.join( diff --git a/src/lbaf/IO/lbsVTDataWriter.py b/src/lbaf/IO/lbsVTDataWriter.py index 66a26dd1..db286890 100644 --- a/src/lbaf/IO/lbsVTDataWriter.py +++ b/src/lbaf/IO/lbsVTDataWriter.py @@ -221,7 +221,7 @@ def __get_communications(self, phase: Phase, rank: Rank): missing_ref = comm_entry["to"].get("id", comm_entry["to"].get("seq_id")) self.__logger.error( f"Invalid object id ({missing_ref}) in communication {json.dumps(comm_entry)}") - + if missing_ref is not None: # Keep communication with invalid entity references for the moment. # We might remove these communications in the future in the reader work to fix invalid input.