You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(">>> computing rho^B where B = ", args.Bpauli)
58
+
logger.info(f"Computing rho^B where B = {args.Bpauli}")
53
59
# NOTE: due to round-off error the density from DFT code is often negative in some voxels which produce NaNs after exponentiation; we need to correct this
f'ERROR!!! Format of the "{args.KPFM_sample}" file with Hartree potential under bias is unknown or incompatible with the main input format, which is "{input_format}".\n',
99
-
file=sys.stderr,
101
+
logger.error(
102
+
f'Format of the "{args.KPFM_sample}" file with Hartree potential under bias is unknown or incompatible with the main input format, which is "{input_format}".\n'
100
103
)
101
104
sys.exit(1)
102
105
v_kpfm*=-1# Unit conversion, energy to potential (eV -> V)
103
106
dv_kpfm=v_kpfm-electrostatic_potential
104
107
105
-
print(">>> Loading tip density under bias from ", args.KPFM_tip, "...")
108
+
logger.info(f">>> Loading tip density under bias from {args.KPFM_tip}")
print(" Select Ag polarization with decay sigma", sigma)
128
+
logger.debug(f"Select Ag polarization with decay sigma{sigma}")
126
129
ifparameters.probeType=="54":
127
130
drho_kpfm= {"pz": 0.250}
128
131
sigma=0.67
129
-
print(" Select Xe-tip polarization")
132
+
logger.debug("Select Xe-tip polarization")
130
133
else:
131
-
raiseValueError(
132
-
'ERROR!!! Neither is "'
133
-
+args.KPFM_sample
134
-
+'" a density file with an appropriate ("'
135
-
+input_format
136
-
+'") format\nnor is it a valid name of a tip polarizability model.\n'
137
-
)
134
+
logger.error(f'Neither is "{args.KPFM_sample}" a density file with an appropriate ("{input_format}") format nor is it a valid name of a tip polarizability model.')
0 commit comments