From 9333ebf7f37243834cf00f59c4754d5d4b219a6a Mon Sep 17 00:00:00 2001 From: Marcel Office Desktop Date: Thu, 12 Sep 2024 16:58:27 +0200 Subject: [PATCH 1/2] [update] deactivate Spectrogram tab features in main branch --- PyLoT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index e0689365..dc465395 100644 --- a/PyLoT.py +++ b/PyLoT.py @@ -716,14 +716,14 @@ class MainWindow(QMainWindow): self.tabs.addTab(wf_tab, 'Waveform Plot') self.tabs.addTab(array_tab, 'Array Map') self.tabs.addTab(events_tab, 'Eventlist') - self.tabs.addTab(spectro_tab, 'Spectro') + #self.tabs.addTab(spectro_tab, 'Spectro') self.wf_layout.addWidget(self.no_data_label) self.wf_layout.addWidget(self.wf_scroll_area) self.wf_scroll_area.setWidgetResizable(True) self.init_array_tab() self.init_event_table() - self.init_spectro_tab() + #self.init_spectro_tab() self.tabs.setCurrentIndex(0) self.eventLabel = QLabel() From 18c37dfdd060d413a7d382d231962dad5b064d10 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 16 Sep 2024 16:27:36 +0200 Subject: [PATCH 2/2] [bugfix] take care of more unescaped backslashes in Metadata --- 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 19bed851..af75bdcf 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -59,6 +59,8 @@ class Metadata(object): :type path_to_inventory: str :return: None """ + path_to_inventory = path_to_inventory.replace('\\', '/') + path_to_inventory = os.path.abspath(path_to_inventory) assert (os.path.isdir(path_to_inventory)), '{} is no directory'.format(path_to_inventory) if path_to_inventory not in self.inventories: self.inventories.append(path_to_inventory)