Skip to content

Commit 989034d

Browse files
committed
Modify some logging levels.
1 parent 9668798 commit 989034d

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

ppafm/chemistry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def findTris(bonds, neighs):
7575
common.append(i)
7676
ncm = len(common)
7777
if ncm > 2:
78-
logger.debug(f"WARNING: bond {b} common neighbors {common}")
78+
logger.warning(f"bond {b} common neighbors {common}")
7979
continue
8080
elif ncm < 1:
81-
logger.debug(f"WARNING: bond {b} common neighbors {common}")
81+
logger.warning(f"bond {b} common neighbors {common}")
8282
continue
8383
tri0 = tuple(sorted(b + (common[0],)))
8484
tris.add(tri0)

ppafm/cli/generateElFF.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ def main(argv=None):
121121
if parameters.probeType == "8":
122122
drho_kpfm = {"pz": 0.045}
123123
sigma = 0.48
124-
logger.debug("Select CO-tip polarization ")
124+
logger.info("Select CO-tip polarization ")
125125
if parameters.probeType == "47":
126126
drho_kpfm = {"pz": 0.21875}
127127
sigma = 0.7
128-
logger.debug(f"Select Ag polarization with decay sigma {sigma}")
128+
logger.info(f"Select Ag polarization with decay sigma {sigma}")
129129
if parameters.probeType == "54":
130130
drho_kpfm = {"pz": 0.250}
131131
sigma = 0.67
132-
logger.debug("Select Xe-tip polarization")
132+
logger.info("Select Xe-tip polarization")
133133
else:
134134
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.')
135135
sys.exit(1)

ppafm/cli/relaxed_scan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def main(argv=None):
102102
ff_vdw = ff_pauli = ff_electrostatics = ff_boltzman = ff_kpfm_t0sv = ff_kpfm_tvs0 = None
103103

104104
if args.noLJ:
105-
logger.debug(f"Apauli {parameters.Apauli}")
105+
logger.info(f"Using separate Pauli and vdW force fields. Apauli: {parameters.Apauli}")
106106

107107
logger.info("Loading Pauli force field from FFpauli_{x,y,z}")
108108
ff_pauli, lvec, _, atomic_info_or_head = io.load_vec_field("FFpauli", data_format=args.output_format)

ppafm/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ def autoGridN(parameters):
525525
# load atoms species parameters form a file ( currently used to load Lennard-Jones parameters )
526526
def loadSpecies(fname=None):
527527
if fname is None or not os.path.exists(fname):
528-
logger.debug("WARNING: loadSpecies(None) => load default atomtypes.ini")
528+
logger.debug("loadSpecies(None) => load default atomtypes.ini")
529529
fname = cpp_utils.PACKAGE_PATH / "defaults" / "atomtypes.ini"
530-
logger.debug(f"loadSpecies from {fname}")
530+
logger.info(f"loadSpecies from {fname}")
531531
# FFparams=np.genfromtxt(fname,dtype=[('rmin',np.float64),('epsilon',np.float64),('atom',int),('symbol', '|S10')],usecols=[0,1,2,3])
532532
FFparams = np.genfromtxt(
533533
fname,
@@ -828,12 +828,12 @@ def atoms2iZs(names, elem_dict):
828828
def parseAtoms(atoms, elem_dict, PBC=True, autogeom=False, lvec=None, parameters=None):
829829
Rs = np.array([atoms[1], atoms[2], atoms[3]])
830830
if elem_dict is None:
831-
logger.debug("WARNING: elem_dict is None => iZs are zero")
831+
logger.warning("elem_dict is None => iZs are zero")
832832
iZs = np.zeros(len(atoms[0]))
833833
else:
834834
iZs = atoms2iZs(atoms[0], elem_dict)
835835
if autogeom:
836-
logger.debug("WARNING: autoGeom shifts atoms")
836+
logger.warning("autoGeom shifts atoms")
837837
autoGeom(Rs, shiftXY=True, fitCell=True, border=3.0)
838838
Rs = np.transpose(Rs, (1, 0)).copy()
839839
Qs = np.array(atoms[4])

ppafm/fitSpline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def imfig(data, title):
265265
coefs3 = np.array([1.0, 4.0, 1.0]) / 6
266266

267267
coefs6 = np.array([7.14285714e-03, 8.57142857e-01, 8.50714286e00, 1.72571429e01, 8.50714286e00, 8.57142857e-01, 7.14285714e-03]) / (2 * 1.72571429e01)
268+
logger.debug(f"coeffs6: {coefs6}")
268269

269270
coefs5 = np.array([0.1, 0.2, 0.4, 0.2, 0.1])
270271

0 commit comments

Comments
 (0)