From 516bfdb1ab8b69404ab8e6a2cdbd4677a8cdada1 Mon Sep 17 00:00:00 2001 From: Michael Wolloch Date: Wed, 20 Mar 2024 15:56:00 +0100 Subject: [PATCH] corrected format label for constant current scans. --- src/py4vasp/calculation/_partial_charge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/py4vasp/calculation/_partial_charge.py b/src/py4vasp/calculation/_partial_charge.py index ba07795f..c5e925d5 100644 --- a/src/py4vasp/calculation/_partial_charge.py +++ b/src/py4vasp/calculation/_partial_charge.py @@ -9,7 +9,7 @@ from py4vasp import exception from py4vasp._third_party.graph import Graph from py4vasp._third_party.graph.contour import Contour -from py4vasp._util import select, import_ +from py4vasp._util import import_, select from py4vasp.calculation import _base, _structure interpolate = import_.optional("scipy.interpolate") @@ -196,7 +196,7 @@ def _constant_current_stm(self, smoothed_charge, current, spin): scan = z_step * scan - self._get_highest_z_coord() spin_label = "both spin channels" if spin == "total" else f"spin {spin}" topology = self._topology() - label = f"STM of {topology} for {spin_label} at constant current={current*1e9:.1e} nA" + label = f"STM of {topology} for {spin_label} at constant current={current*1e9:.2f} nA" return Contour(data=scan, lattice=self._in_plane_vectors(), label=label) def _constant_height_stm(self, smoothed_charge, tip_height, spin):