From 180cd25b512c499af71bf7a45346b062b36e8604 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 497f4762..7ec89e7d 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: