Skip to content

Commit

Permalink
Clean ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelgda committed Feb 15, 2024
1 parent 3dc16e3 commit c4bfddd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions irrep/bandstructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def __init_vasp(
("Invalid value for keyword EF. It must be "
"a number or 'auto'")
)
print("Efermi = {:.4f} eV".format(self.efermi) + msg)
print("\nEfermi = {:.4f} eV".format(self.efermi) + msg)
WCF = WAVECARFILE(fWAV)
# RECLENGTH=3 # the length of a record in WAVECAR. It is defined in the
# first record, so let it be 3 so far"
Expand Down Expand Up @@ -298,7 +298,7 @@ def __init_vasp(
)

print(
"WAVECAR contains {0} k-points and {1} bands.\n Saving {2} bands starting from {3} in the output".format(
"WAVECAR contains {0} k-points and {1} bands.\nSaving {2} bands starting from {3} in the output".format(
NK, NBin, NBout, IBstart + 1
)
)
Expand Down
4 changes: 2 additions & 2 deletions irrep/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def cli(
print(fwfk.split("/")[0].split("-"))
preline = " ".join(s.split("_")[1] for s in fwfk.split("/")[0].split("-")[:3])
except Exception as err:
print(err)
# print(err)
preline = ""
json_data = {}

Expand Down Expand Up @@ -467,7 +467,7 @@ def cli(

if plotbands:
json_data["characters_and_irreps"] = {}
print("plotbands = True --> writing bands")
print("\nSaving bands for plotting (plotbands == True)")
for k, sub in subbands.items():
if isymsep is not None:
print(
Expand Down
3 changes: 2 additions & 1 deletion irrep/gvectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def calc_gvectors(
for N in range(nplanemax):
flag = True
if N % 10 == 0:
print(N, len(igall))
# print(N, len(igall))
pass
# if len(igall) >= nplane / (2 if spinor else 1):
# break
if len(igall) >= nplane / 2: # Only enters if vasp
Expand Down
6 changes: 3 additions & 3 deletions irrep/spacegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ def _findsym(self, inPOSCAR, cell, magnetic_moments):
dataset['origin_shift']
)
else:
print("MAGNETIC DATASET")
dataset = spglib.get_magnetic_symmetry_dataset((*cell, magnetic_moments))
if dataset is None:
raise ValueError("No magnetic space group could be detected!")
Expand Down Expand Up @@ -830,10 +829,11 @@ def show(self, symmetries=None):
print('')
print("\n ---------- INFORMATION ABOUT THE SPACE GROUP ---------- \n")
print('')
print("Space group {0} (# {1}) has {2} symmetry operations ".format(
print("Space group {0} (# {1}) has {2}{3}symmetry operations ".format(
self.name,
self.number,
len(self.symmetries))
len(self.symmetries),
" unitary " if self.magnetic else " "),
)

if (not np.allclose(self.refUC, np.eye(3)) or
Expand Down
2 changes: 1 addition & 1 deletion irreptables/irreptables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def __init__(self, SGnumber, spinor, name=None, magnetic=False):
elif l[0].lower() == "spinor":
assert str2bool(l[1]) == self.spinor
elif l[0].lower() == "symmetries":
print("Reading symmetries from tables")
print(f"\nReading symmetries from tables for SG {self.number}")
symmetries = []
while len(symmetries) < self.nsym:
l = lines.pop()
Expand Down

0 comments on commit c4bfddd

Please sign in to comment.