diff options
author | 2022-03-03 08:51:20 -0800 | |
---|---|---|
committer | 2022-03-03 08:51:20 -0800 | |
commit | 4e2025d31510605b1b01486dd5e55b8b258be1b7 (patch) | |
tree | fb9d1b1fa36602c0e632fbe0ea9caa99a97028a5 /Python/pywarpx/Diagnostics.py | |
parent | bdc0dc4ed9d88bb0f719aa85e9f11490a6436fe5 (diff) | |
download | WarpX-4e2025d31510605b1b01486dd5e55b8b258be1b7.tar.gz WarpX-4e2025d31510605b1b01486dd5e55b8b258be1b7.tar.zst WarpX-4e2025d31510605b1b01486dd5e55b8b258be1b7.zip |
PICMI: warpx_file_min_digits (#2914)
Add for all diagnostics the equivalent of `<diag>.file_min_digits`.
Diffstat (limited to 'Python/pywarpx/Diagnostics.py')
-rw-r--r-- | Python/pywarpx/Diagnostics.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): |