From fa42134a00d1772fc2d78a937ff4b47ce570f5ff Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Thu, 15 Sep 2016 11:41:30 +0200 Subject: [PATCH] [modified] use os.path to create path strings for reading data --- pylot/core/util/dataprocessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/dataprocessing.py b/pylot/core/util/dataprocessing.py index d5e7822e..23c00149 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -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)