Bug fixed: Parser could not find dless-file as path was not given.

This commit is contained in:
Ludger Küperkoch 2016-09-14 13:43:10 +02:00
parent d7680f8ae3
commit d099e4b466

View File

@ -213,7 +213,7 @@ 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(inv[invtype][0])
fname = Parser(path_to_inventory + '/' + inv[invtype][0])
seedresp = dict(filename=fname,
date=stime,
units=unit)
@ -281,4 +281,4 @@ def get_prefilt(trace, tlow=(0.5, 0.9), thi=(5., 2.), verbosity=0):
if __name__ == "__main__":
import doctest
doctest.testmod()
doctest.testmod()