Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jamal Mustafa <[email protected]>
  • Loading branch information
giovannipizzi and jimustafa committed May 30, 2024
1 parent 394cfe1 commit b025922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wannier90io/_u.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def read_u(stream: typing.TextIO) -> tuple[np.ndarray, np.ndarray]:
Read unitary matrix file (seedname_u.mat) or the rectangular U_dis matrix
file (seedname_u_dis.mat).
Note: for the _u.mat file, num_bands == num_wann.
Note:
for the _u.mat file, num_bands == num_wann.
Arguments:
stream: a file-like stream
Expand All @@ -21,7 +22,6 @@ def read_u(stream: typing.TextIO) -> tuple[np.ndarray, np.ndarray]:
kpoint coordinates in fractional coordinates (num_kpts, 3)
U matrix U(k) or U_dis(k) (num_kpts, num_bands, num_wann)
"""
stream.readline() # header

Expand Down
1 change: 0 additions & 1 deletion src/wannier90io/_unk.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def read_unk_formatted(stream: typing.TextIO) -> tuple[int, np.ndarray]:
k-point index ik (integer)
complex wavefunction (ngx, ngy, ngz, Nb)
"""
[ngx, ngy, ngz, ik, nbnd] = np.fromstring(stream.readline(), sep=' ', dtype=int)

Expand Down

0 comments on commit b025922

Please sign in to comment.