From ee2f462c92e706644c725b723ac75f59619c1ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 20 Sep 2016 14:30:24 +0200 Subject: [PATCH] Fixed bug in read_metadata.py: path to inventory file was not taken into account. --- 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 e5133d21..5621fac9 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -183,7 +183,8 @@ def read_metadata(path_to_inventory): "RESP-file found!") elif invtype == 'dless': # prevent multiple read of large dlsv if len(inv[invtype]) == 1: - robj = Parser(inv[invtype][0]) + fullpath_inv = os.path.join(path_to_inventory, inv[invtype][0]) + robj = Parser(fullpath_inv) else: robj = inv[invtype] else: