Skip to content

Commit

Permalink
corrected format label for constant current scans.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWolloch committed Mar 20, 2024
1 parent 78f3c3f commit 516bfdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py4vasp/calculation/_partial_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 516bfdb

Please sign in to comment.