Commit 2fa992bb authored by Ievgen Vovk's avatar Ievgen Vovk
Browse files

[GTIGenerator]: adapted to the new config file structure.

parent 4809396b
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment