From 4e2025d31510605b1b01486dd5e55b8b258be1b7 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 3 Mar 2022 08:51:20 -0800 Subject: PICMI: warpx_file_min_digits (#2914) Add for all diagnostics the equivalent of `.file_min_digits`. --- Python/pywarpx/Diagnostics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Python/pywarpx/Diagnostics.py') diff --git a/Python/pywarpx/Diagnostics.py b/Python/pywarpx/Diagnostics.py index 5ed359b1c..408ce6d14 100644 --- a/Python/pywarpx/Diagnostics.py +++ b/Python/pywarpx/Diagnostics.py @@ -17,7 +17,10 @@ class Diagnostic(Bucket): self._localsetattr(name, value) else: if name in self.argvattrs: - assert value == self.argvattrs[name], Exception(f'Diagnostic attributes not consistent for {self.instancename}') + assert value == self.argvattrs[name], \ + Exception(f'Diagnostic attributes not consistent for ' + f'"{self.instancename}": ' + f'"{value}" != "{self.argvattrs[name]}"') self.argvattrs[name] = value def __setattr__(self, name, value): -- cgit v1.2.3