Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
RTA
HiPeRTA_Stream
Commits
726ab9c3
Commit
726ab9c3
authored
Mar 18, 2021
by
Thomas Vuillaume
Browse files
finally fixing this node issue
parent
7865b87a
Pipeline
#110161
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
hiperta_stream/reorganizer_dl1hiperta300_stream_to_dl1lstchain063.py
...eam/reorganizer_dl1hiperta300_stream_to_dl1lstchain063.py
+4
-3
No files found.
hiperta_stream/reorganizer_dl1hiperta300_stream_to_dl1lstchain063.py
View file @
726ab9c3
...
...
@@ -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
.
image
s
]
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
.
image
s
:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment