From af2ee30da93264a818a792456644a3942622b79c Mon Sep 17 00:00:00 2001
From: Patrick Godwin <patrick.godwin@ligo.org>
Date: Mon, 11 Feb 2019 11:02:40 -0800
Subject: [PATCH] gstlal_ll_dq: fix issue where PSD directories were not being
 created before saving them to disk

---
 gstlal-ugly/bin/gstlal_ll_dq | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gstlal-ugly/bin/gstlal_ll_dq b/gstlal-ugly/bin/gstlal_ll_dq
index bb7273ef5f..f981afab4f 100755
--- a/gstlal-ugly/bin/gstlal_ll_dq
+++ b/gstlal-ugly/bin/gstlal_ll_dq
@@ -145,6 +145,7 @@ class PSDHandler(simplehandler.Handler):
 			# Save a "latest" psd
 			# NOTE: The PSD is special, we just record it. No min/median/max
 			thisdir = os.path.join(self.out_path, io.hdf5.gps_to_leaf_directory(buftime))
+			aggregator.makedir(thisdir)
 			psd_name = "%s-PSD-%d-100.hdf5" % (self.instrument, int(round(buftime,-2)))
 			self.to_hdf5(os.path.join(thisdir, psd_name), {"freq": psd_freq, "asd": psd_data, "time": numpy.array([buftime])})
 
-- 
GitLab