Skip to content
Snippets Groups Projects
Commit af2ee30d authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_ll_dq: fix issue where PSD directories were not being created before saving them to disk

parent f1297c1a
No related branches found
No related tags found
No related merge requests found
......@@ -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])})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment