Skip to content

Commit

Permalink
added a check to make sure topDir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pernak18 committed Jun 10, 2020
1 parent a158dce commit 94357c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(self, inArgs, lnfl=False, lbl=False, lines=False):
self.lines = False

self.topDir = str(inArgs['top_dir'])
utils.file_check(self.topDir)

# LNFL: always single precision, LBLRTM: always double
if lnfl:
Expand Down Expand Up @@ -190,7 +191,7 @@ def build(self):
self.opSys, self.compStr.lower(), self.precision)
modExe = glob.glob(modStr)[0]

if self.doLNFL:
if self.doLNFL:
self.pathLNFL = os.path.join(self.modelDir, modExe)
if self.doLBL:
self.pathLBL = os.path.join(self.modelDir, modExe)
Expand Down

0 comments on commit 94357c8

Please sign in to comment.