From cf7fafbe62989e284a5a426aaac1a9f2234130fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 10 Oct 2018 11:17:58 +0200 Subject: [PATCH] Additional possible suffix for metadata file. --- pylot/core/util/dataprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylot/core/util/dataprocessing.py b/pylot/core/util/dataprocessing.py index 55a229c9..7aebca25 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -274,6 +274,7 @@ class Metadata(object): """ # functions used to read metadata for different file endings (or file types) read_functions = {'dless': self._read_dless, + 'dataless': self._read_dless, 'dseed': self._read_dless, 'xml': self._read_inventory_file, 'resp': self._read_inventory_file} @@ -281,6 +282,7 @@ class Metadata(object): if file_ending in read_functions.keys(): robj, exc = read_functions[file_ending](path_to_inventory_filename) if exc is not None: + print("Nicht None") raise exc return file_ending, robj # in case file endings did not match the above keys, try and error