Commit 726ab9c3 authored by Thomas Vuillaume's avatar Thomas Vuillaume
Browse files

finally fixing this node issue

parent 7865b87a
Pipeline #110161 passed with stage
in 31 seconds
......@@ -116,12 +116,12 @@ def stack_and_write_images_table(input_filename, hfile_out, node_dl1_event):
"""
telescope_node = node_dl1_event.telescope
imag_per_tels = [Table(table_img.read()) for table_img in telescope_node.images]
imag_per_tels = [Table(table_img.read()) for table_img in telescope_node.image]
image_table = vstack(imag_per_tels)
for tab in telescope_node.images:
for tab in telescope_node.image:
hfile_out.remove_node(tab)
# Todo change names of column `image_mask` to `` ??
dump_plus_copy_node_to_create_new_table(input_filename,
......@@ -308,6 +308,7 @@ def create_hfile_out(input_filename, outfile_name, sim_pointer08, config_pointer
filters=filter_pointer)
# This will only happen on ctapipe, not RTA
# hfile_out.remove_node(dl1_event_node06.telescope.trigger) # Table stored twice, remove to avoid problems.
hfile_out.rename_node(dl1_event_node06.telescope.images, newname='image')
try:
subarray_pointer = hfile_out.root.dl1.event.subarray
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment