Skip to content

Commit

Permalink
use regular expression to match 'k *='
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-wittemeier committed May 22, 2024
1 parent 2c0ac47 commit 2eee2a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sisl/io/siesta/vibra.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from __future__ import annotations

import re

import numpy as np

import sisl._array as _a
Expand Down Expand Up @@ -150,7 +152,7 @@ def _r_next_sizes(self):
nmodes = 1
while True:
line = self.readline()
if line.startswith("k ="):
if re.match("k *=", line):
break
elif line.startswith("Eigenvector"):
nmodes += 1
Expand Down

0 comments on commit 2eee2a7

Please sign in to comment.