Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Apr 22, 2021
1 parent 8018c04 commit 7907dde
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 @@ -61,11 +61,10 @@ def load(self, filename):
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])

model_type = re.findall(r"MODEL TYPE=?\s*(\d)", header)
self.model_type = model_type
model_type = re.findall(r"MODEL TYPE=?\s*(\d)", header)[0]
self.model_type = int(model_type)

model_type_key = {0: "rhox", 1: "tau", 3: "sph"}
self.model_type = int(header[i + k : j])
self.depth = model_type_key[self.model_type]
self.geom = "pp"

Expand Down

0 comments on commit 7907dde

Please sign in to comment.