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
f0528b8b
Commit
f0528b8b
authored
Nov 29, 2021
by
Alessio Berti
Browse files
Convert input_url to strings.
parent
99650167
Pipeline
#116186
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
f0528b8b
...
...
@@ -113,7 +113,7 @@ class MAGICEventSource(EventSource):
super
().
__init__
(
input_url
=
input_url
,
config
=
config
,
parent
=
parent
,
**
kwargs
)
# Retrieving the list of run numbers corresponding to the data files
run_info
=
self
.
get_run_info_from_name
(
input_url
)
run_info
=
self
.
get_run_info_from_name
(
str
(
input_url
)
)
run_numbers
=
run_info
[
0
]
is_mc_runs
=
run_info
[
1
]
...
...
@@ -228,7 +228,7 @@ class MAGICEventSource(EventSource):
run
=
dict
()
run
[
'number'
]
=
run_number
run
[
'read_events'
]
=
0
run
[
'data'
]
=
MarsRun
(
run_file_mask
=
self
.
input_url
)
run
[
'data'
]
=
MarsRun
(
run_file_mask
=
str
(
self
.
input_url
)
)
return
run
...
...
Write
Preview
Supports
Markdown
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