Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ievgen Vovk
ctapipe_io_magic
Commits
61db1a37
Commit
61db1a37
authored
Dec 06, 2021
by
Alessio Berti
Browse files
Select subarray if allowed_tels is specified.
parent
f16ead9c
Pipeline
#116702
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
61db1a37
...
...
@@ -173,7 +173,9 @@ class MAGICEventSource(EventSource):
self
.
current_run
=
None
self
.
_subarray_info
=
SubarrayDescription
(
'MAGIC'
,
MAGIC_TEL_POSITIONS
,
MAGIC_TEL_DESCRIPTIONS
)
name
=
'MAGIC'
,
tel_positions
=
MAGIC_TEL_POSITIONS
,
tel_descriptions
=
MAGIC_TEL_DESCRIPTIONS
)
if
self
.
allowed_tels
:
self
.
_subarray_info
=
self
.
_subarray_info
.
select_subarray
(
self
.
allowed_tels
)
@
staticmethod
def
is_compatible
(
file_mask
):
...
...
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