From 94bf9821b75a658f3db80ed135e6e331aa751cd0 Mon Sep 17 00:00:00 2001 From: pyiron-runner Date: Tue, 14 Jan 2025 05:52:00 +0000 Subject: [PATCH] Format black --- pyiron_atomistics/sphinx/base.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pyiron_atomistics/sphinx/base.py b/pyiron_atomistics/sphinx/base.py index e5669b637..b2d42ae6e 100644 --- a/pyiron_atomistics/sphinx/base.py +++ b/pyiron_atomistics/sphinx/base.py @@ -1032,15 +1032,15 @@ def set_convergence_precision( ionic_force_tolerance = ionic_forces if ionic_energy is not None: ionic_energy_tolerance = ionic_energy - assert ionic_energy_tolerance is None or ionic_energy_tolerance > 0, ( - "ionic_energy_tolerance must be a positive float" - ) - assert ionic_force_tolerance is None or ionic_force_tolerance > 0, ( - "ionic_force_tolerance must be a positive float" - ) - assert electronic_energy is None or electronic_energy > 0, ( - "electronic_energy must be a positive float" - ) + assert ( + ionic_energy_tolerance is None or ionic_energy_tolerance > 0 + ), "ionic_energy_tolerance must be a positive float" + assert ( + ionic_force_tolerance is None or ionic_force_tolerance > 0 + ), "ionic_force_tolerance must be a positive float" + assert ( + electronic_energy is None or electronic_energy > 0 + ), "electronic_energy must be a positive float" if ionic_energy_tolerance is not None or ionic_force_tolerance is not None: # self.input["dE"] = ionic_energy_tolerance # self.input["dF"] = ionic_force_tolerance @@ -1312,9 +1312,9 @@ def _get_potential_path( potential_path = potentials.find_potential_file( path=potentials.find_default(new_element)["Filename"].values[0][0] ) - assert os.path.isfile(potential_path), ( - "such a file does not exist in the pp directory" - ) + assert os.path.isfile( + potential_path + ), "such a file does not exist in the pp directory" elif elem in modified_elements.keys(): new_element = modified_elements[elem] if os.path.isabs(new_element):