Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alessio Berti
magic-cta-pipe
Commits
2fa992bb
Commit
2fa992bb
authored
Nov 25, 2019
by
Ievgen Vovk
Browse files
[GTIGenerator]: adapted to the new config file structure.
parent
4809396b
Changes
1
Hide whitespace changes
Inline
Side-by-side
gti.py
View file @
2fa992bb
...
...
@@ -211,7 +211,7 @@ class GTIGenerator:
if
not
file_list
:
raise
ValueError
(
"GTI generator: no files to process"
)
if
"dc"
not
in
self
.
config
[
'event_list'
][
'cuts'
]:
if
"dc"
not
in
self
.
config
[
'event_list'
][
'cuts'
]
[
'quality'
]
:
raise
ValueError
(
"GTI generator: no DC cuts given"
)
if
self
.
verbose
:
...
...
@@ -238,7 +238,7 @@ class GTIGenerator:
df
=
df
.
sort_values
(
by
=
[
'mjd'
])
cut
=
self
.
config
[
'event_list'
][
'cuts'
][
'dc'
]
cut
=
self
.
config
[
'event_list'
][
'cuts'
][
'
quality'
][
'
dc'
]
selection
=
df
.
query
(
cut
)
...
...
@@ -259,7 +259,7 @@ class GTIGenerator:
if
not
file_list
:
raise
ValueError
(
"GTI generator: no files to process"
)
if
"l3rate"
not
in
self
.
config
[
'event_list'
][
'cuts'
]:
if
"l3rate"
not
in
self
.
config
[
'event_list'
][
'cuts'
]
[
'quality'
]
:
raise
ValueError
(
"GTI generator: no L3 rate cuts given"
)
if
self
.
verbose
:
...
...
@@ -286,7 +286,7 @@ class GTIGenerator:
df
=
df
.
sort_values
(
by
=
[
'mjd'
])
cut
=
self
.
config
[
'event_list'
][
'cuts'
][
'l3rate'
]
cut
=
self
.
config
[
'event_list'
][
'cuts'
][
'
quality'
][
'
l3rate'
]
selection
=
df
.
query
(
cut
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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