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
5454bb6e
Commit
5454bb6e
authored
Apr 14, 2019
by
Ievgen Vovk
Browse files
Made regexps raw strings - to comply with Python3 strings interpretation as Unicode.
parent
a37a21bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
5454bb6e
...
...
@@ -140,7 +140,7 @@ class MAGICEventSource(EventSource):
A run number of the file.
"""
mask
=
".*\d+_M\d+_(\d+)\.\d+_.*"
mask
=
r
".*\d+_M\d+_(\d+)\.\d+_.*"
parsed_info
=
re
.
findall
(
mask
,
file_name
)
try
:
...
...
@@ -603,7 +603,7 @@ class MarsDataRun:
A run number of the file.
"""
mask
=
".*\d+_M\d+_(\d+)\.\d+_.*"
mask
=
r
".*\d+_M\d+_(\d+)\.\d+_.*"
parsed_info
=
re
.
findall
(
mask
,
file_name
)
run_number
=
int
(
parsed_info
[
0
])
...
...
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