From c5ed631e67c246ef32ab8b3060dbc60f3a97ae96 Mon Sep 17 00:00:00 2001 From: jurjen93 Date: Sun, 16 Jun 2024 14:37:47 +0200 Subject: [PATCH] abs path taql --- h5_merger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5_merger.py b/h5_merger.py index 0303f778..a9e0877e 100644 --- a/h5_merger.py +++ b/h5_merger.py @@ -371,7 +371,7 @@ def __init__(self, h5_out, h5_tables=None, ms_files=None, h5_time_freq=None, con self.ax_time = array([]) self.ax_freq = array([]) for m in self.ms: - t = ct.taql('SELECT CHAN_FREQ, CHAN_WIDTH FROM ' + m + '::SPECTRAL_WINDOW') + t = ct.taql('SELECT CHAN_FREQ, CHAN_WIDTH FROM ' + os.path.abspath(m) + '::SPECTRAL_WINDOW') self.ax_freq = append(self.ax_freq, t.getcol('CHAN_FREQ')[0]) t.close()