Skip to content

Commit 995001f

Browse files
committed
Minor changes
1 parent 07c9292 commit 995001f

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

tools/displace.py

100755100644
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ def print_displacement_stdout(disp_list, codeobj):
447447
args = parser.parse_args()
448448

449449
if not args.print_disp_stdout:
450-
print("\n" + "="*70)
450+
print("\n" + "=" * 70)
451451
print(" displace.py -- Generator of Displaced Configurations")
452452
print(" Version 1.3.0")
453-
print("="*70)
453+
print("=" * 70)
454454

455455
code, file_original, struct_format, str_outfiles = check_code_options(args)
456456
displacement_mode = check_displace_options(args, code)
@@ -459,18 +459,18 @@ def print_displacement_stdout(disp_list, codeobj):
459459
codeobj.load_initial_structure(file_original)
460460

461461
if not args.print_disp_stdout:
462-
print("\n" + "-"*70)
462+
print("\n" + "-" * 70)
463463
print(" Input Configuration")
464-
print("-"*70)
464+
print("-" * 70)
465465
print(f" {'Code format':<30} : {code}")
466466
print(f" {'Output format':<30} : {struct_format}")
467467
print(f" {'Reference structure':<30} : {file_original}")
468468
print(f" {'Number of atoms':<30} : {codeobj.nat}")
469-
469+
470470
# Add displacement mode information
471-
print("\n" + "-"*70)
471+
print("\n" + "-" * 70)
472472
print(" Displacement Mode")
473-
print("-"*70)
473+
print("-" * 70)
474474
if displacement_mode == "fd":
475475
print(" Finite Difference")
476476
print(f" {'Displacement magnitude':<30} : {args.mag} Å")
@@ -500,7 +500,7 @@ def print_displacement_stdout(disp_list, codeobj):
500500
print(f" {'Target mode (iq, imode)':<30} : {args.pes}")
501501
if args.Qrange:
502502
print(f" {'Q range':<30} : {args.Qrange}")
503-
503+
504504
if args.num_disp:
505505
print(f" {'Number of displacements':<30} : {args.num_disp}")
506506
if args.random_seed is not None:
@@ -511,16 +511,16 @@ def print_displacement_stdout(disp_list, codeobj):
511511
)
512512

513513
if not args.print_disp_stdout:
514-
print("\n" + "-"*70)
514+
print("\n" + "-" * 70)
515515
print(" Output Information")
516-
print("-"*70)
516+
print("-" * 70)
517517
print(f" {'Number of displacements':<30} : {len(disp_list)}")
518518
print(f" {'Output file pattern':<30} : {str_outfiles}")
519-
print("-"*70)
519+
print("-" * 70)
520520
codeobj.generate_structures(
521521
args.prefix, header_list, disp_list, updated_structure
522522
)
523523
print(f"\n ✓ Successfully created {len(disp_list)} displaced structure files.")
524-
print("="*70 + "\n")
524+
print("=" * 70 + "\n")
525525
else:
526526
print_displacement_stdout(disp_list, codeobj)

tools/extract.py

100755100644
File mode changed.

tools/fcsio/reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def __init__(self, filename, format=None):
6060
self.transformation_matrix = None
6161
self.transformation_matrix_int = None
6262
self.shift_vector = None
63+
self.shift_vector_vel = None
6364

6465
self._parse_structure()
6566

@@ -353,6 +354,7 @@ def _get_forceconstants_h5(self, maxorder=4):
353354
xyz_indices,
354355
shift_vectors,
355356
fcs_entries,
357+
shift_vectors_vel,
356358
]
357359

358360
return fcs_dic

tools/taylor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def set_forceconstants(self, fcs_dic, primitive_cell_alm):
6262
- primitive_cell_alm: The primitive cell associated with the force constants.
6363
"""
6464
self.fcs_dic = fcs_dic
65-
print(self.primitive_cell)
66-
print(primitive_cell_alm)
6765
self._check_consistency_primitive_cell(self.primitive_cell, primitive_cell_alm)
6866
self._set_taylor_indices()
6967

0 commit comments

Comments
 (0)