Skip to content

Commit

Permalink
make atmo_grid_into optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Nov 18, 2021
1 parent ffdb6c8 commit d456588
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pysme/atmosphere/savfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ def __new__(cls, filename, source=None, lfs=None):
source = basename(filename)
self.source = source

if "atmo_grid_intro" in data.keys():
try:
self.info = b" ".join(data["atmo_grid_intro"]).decode()
except (KeyError, TypeError):
self.info = ""

# TODO cover all cases
if "marcs" in self.source:
Expand Down

0 comments on commit d456588

Please sign in to comment.