Skip to content

Commit 2027f55

Browse files
authored
Add # as an indicator of comments in addition to !
Wannier90 treats both ! and # as a starting character of comments.
1 parent fc412b5 commit 2027f55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tbmodels/_tb_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ def _read_win(iterator):
806806
and returns a mapping of its content.
807807
"""
808808
lines = (l.split("!")[0] for l in iterator)
809+
lines = (l.split("#")[0] for l in lines)
809810
lines = (l.strip() for l in lines)
810811
lines = (l for l in lines if l)
811812
lines = (l.lower() for l in lines)

0 commit comments

Comments
 (0)