Skip to content

Commit

Permalink
bugfix in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Apr 22, 2021
1 parent 7907dde commit 9d419f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pysme/atmosphere/krzfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def load(self, filename):
# vturb

self.vturb = float(re.findall(r"VTURB=?\s*(\d)", header)[0])
self.lonh = float(re.findall(r"L/H=?(\d+.?\d*)", header)[0])
self.lonh = float(re.findall(r"L/H=?\s*(\d+.?\d*)", header)[0])
self.teff = float(re.findall(r"T ?EFF=?\s*(\d+.?\d*)", header)[0])
self.logg = float(re.findall(r"GRAV(ITY)?=?\s*(\d+.?\d*)", header)[0][1])

Expand All @@ -68,8 +68,7 @@ def load(self, filename):
self.depth = model_type_key[self.model_type]
self.geom = "pp"

self.wlstd = float(re.findall(r"WLSTD=?\s*(/d+.?\d*)", header)[0])

self.wlstd = float(re.findall(r"WLSTD=?\s*(\d+.?\d*)", header)[0])
# parse opacity
i = opacity.find("-")
opacity = opacity[:i].split()
Expand Down

0 comments on commit 9d419f7

Please sign in to comment.