[modified] use os.path to create path strings for reading data

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-15 11:41:30 +02:00
parent d099e4b466
commit fa42134a00

View File

@ -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)