[modified] use os.path to create path strings for reading data
This commit is contained in:
parent
d099e4b466
commit
fa42134a00
@ -213,7 +213,8 @@ def restitute_data(data, path_to_inventory, unit='VEL', force=False):
|
||||
if len(inv[invtype]) > 1:
|
||||
fname = Parser(find_in_list(inv[invtype], seed_id))
|
||||
else:
|
||||
fname = Parser(path_to_inventory + '/' + inv[invtype][0])
|
||||
fullpath = os.path.join(path_to_inventory, inv[invtype][0])
|
||||
fname = Parser(fullpath)
|
||||
seedresp = dict(filename=fname,
|
||||
date=stime,
|
||||
units=unit)
|
||||
|
Loading…
Reference in New Issue
Block a user