This class is taylored to work using the O3 - era line files. There are essentially two types of these files, their main difference being the number of columns.
Definition at line 80 of file lineFileParser.py.
Public Member Functions | |
def | __init__ (self) |
Read and expand line files into frequency intervals. More... | |
def | parse_identified_lines_csv (self, lines_file, columns=None, extra_wing_Hz=0.0, genfromtxt_kwargs=None) |
Parse a csv file containing lines of known origin (Advanced LIGO format). More... | |
def | parse_unidentified_lines_csv (self, lines_file, columns=None, extra_wing_Hz=0.0, genfromtxt_kwargs=None) |
Parse a csv file containing unidentified lines (Advanced LIGO format). More... | |
Data Fields | |
lines_left_side | |
lines_right_side | |
Static Public Attributes | |
dictionary | default_genfromtxt_kwargs = {"delimiter": ",", "skip_header": 4} |
dictionary | identified_lines_keys |
dictionary | unidentified_lines_keys = {"frequency": 0} |
def lalpulsar.lineFileParser.LineFileParser.__init__ | ( | self | ) |
Read and expand line files into frequency intervals.
If multiple files are read, resulting interval are concatenated.
Intervals can be retrieved using the attributes lines_left_side
and lines_right_side
.
Definition at line 102 of file lineFileParser.py.
def lalpulsar.lineFileParser.LineFileParser.parse_identified_lines_csv | ( | self, | |
lines_file, | |||
columns = None , |
|||
extra_wing_Hz = 0.0 , |
|||
genfromtxt_kwargs = None |
|||
) |
Parse a csv file containing lines of known origin (Advanced LIGO format).
lines_file | Path to csv format lines file. |
columns | Dictionary with header fields as key and the corresponding (0-based) column index as value. If None, default ordering specified in the class attribute will be used. |
extra_wing_Hz | Extra wings to add at both sides of the resulting intervals, in Hz. |
genfromtxt_kwargs | kwargs to be passed to numpy.genfromtxt. Default is delimiter=",", skip_header=4 . |
Definition at line 128 of file lineFileParser.py.
def lalpulsar.lineFileParser.LineFileParser.parse_unidentified_lines_csv | ( | self, | |
lines_file, | |||
columns = None , |
|||
extra_wing_Hz = 0.0 , |
|||
genfromtxt_kwargs = None |
|||
) |
Parse a csv file containing unidentified lines (Advanced LIGO format).
lines_file | Path to csv format lines file. |
columns | Dictionary with header fields as key and the corresponding (0-based) column index as value. If None, default ordering specified in the class attribute will be used. |
extra_wing_Hz | Extra wings to add at both sides of the resulting intervals, in Hz. |
genfromtxt_kwargs | kwargs to be passed to numpy.genfromtxt. Default is delimiter=",", skip_header=4 . |
Definition at line 155 of file lineFileParser.py.
|
static |
Definition at line 82 of file lineFileParser.py.
|
static |
Definition at line 83 of file lineFileParser.py.
|
static |
Definition at line 93 of file lineFileParser.py.
lalpulsar.lineFileParser.LineFileParser.lines_left_side |
Definition at line 103 of file lineFileParser.py.
lalpulsar.lineFileParser.LineFileParser.lines_right_side |
Definition at line 104 of file lineFileParser.py.