Skip to content

Commit

Permalink
Use gzip open
Browse files Browse the repository at this point in the history
  • Loading branch information
gschwefer committed Apr 30, 2024
1 parent a5ca0f2 commit 4dc9056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ctapipe/reco/impact_utilities.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gzip
import pickle

import numba
Expand Down Expand Up @@ -191,5 +192,5 @@ def create_dummy_templates(

template_dict[key] = template.T * pe

with open(output_file, "wb") as filehandler:
with gzip.open(output_file, "wb") as filehandler:
pickle.dump(template_dict, filehandler)

0 comments on commit 4dc9056

Please sign in to comment.