Skip to content
Snippets Groups Projects
Commit e9d47ed7 authored by Cort Posnansky's avatar Cort Posnansky Committed by Prathamesh Joshi
Browse files

pastro_uploader: Close model tempfile

parent a7c4a6a4
No related branches found
No related tags found
No related merge requests found
Pipeline #662541 passed
......@@ -198,6 +198,7 @@ class PAstroUploader(events.EventProcessor):
self.model.finalize(self.model.prior())
tmp, tmp_path = tempfile.mkstemp(".h5", dir=os.getenv("_CONDOR_SCRATCH_DIR", tempfile.gettempdir()))
os.close(tmp)
logger.debug(f'Writing model to {tmp_path}...')
self.model.to_h5(tmp_path)
......
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