Commit 3e4af0d3 authored by Roberto Tonini's avatar Roberto Tonini

checking input path string of the configuration folder

parent fea2fa4a
......@@ -37,9 +37,9 @@ def setDirs():
def readMainSettings(pvhapath):
"""
"""
print("Input path: {0}".format(pvhapath))
config = ConfigParser.RawConfigParser()
filecfg = os.path.join(pvhapath,'pybet.cfg')
filecfg = os.path.join(pvhapath, 'pybet.cfg')
config.read(filecfg)
vname = config.get('Main Settings', 'Volcano Name')
vc = config.get('Main Settings', 'Volcano Center')
......@@ -54,12 +54,12 @@ def readMainSettings(pvhapath):
return vname, vc, shape, geom, utm, tw, sp, bg, bg_lims
def readNode123(pvhapath,node):
def readNode123(pvhapath, node):
"""
"""
config = ConfigParser.RawConfigParser()
filecfg = os.path.join(pvhapath,'pybet.cfg')
filecfg = os.path.join(pvhapath, 'pybet.cfg')
config.read(filecfg)
p = config.getfloat(node, 'Prior probability')
l = config.getint(node, 'Equivalent N. Data (Lambda)')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment