Skip to content

Commit c87b0c1

Browse files
authored
Merge pull request #1350 from cta-observatory/lighter_DL1a_files
Remove images from list of nodes to be copied
2 parents a694fbf + f924ae8 commit c87b0c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lstchain/scripts/lstchain_dl1ab.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,11 @@ def main():
269269
parameters_to_update["calibration_id"] = np.int32
270270

271271
nodes_keys = get_dataset_keys(args.input_file)
272-
if args.no_image:
273-
nodes_keys.remove(dl1_images_lstcam_key)
272+
# Remove the images key from the list of nodes to be copied:
273+
# it will be added later if so chosen by the user.
274+
# Copying it here sometimes resulted in too bulky files, due
275+
# to empty chunks.
276+
nodes_keys.remove(dl1_images_lstcam_key)
274277

275278
metadata = global_metadata()
276279

0 commit comments

Comments
 (0)