Minimal container for the >=TSERIESSECT header block.
It parses the section header and the ordered list of
measurement IDs that follow the header. The class keeps a
pointer to where the first >TSERIES data block starts so
downstream readers can jump straight to the data.
Parameters:
verbose (int or bool, optional) – Verbosity flag inherited from EDIComponentBase.
logger (object, optional) – Logger instance inherited from EDIComponentBase.
**kws – Keyword overrides for any public attribute. Unknown
keys are ignored.
Parsing is tolerant. Unknown keys are stored in extra.
Blank lines and comment lines beginning with // are
ignored. If multiple time-series sections exist, call
from_file() on the desired file view or use a higher
level iterator to locate the right header first.
Reader and writer for >TSERIES data blocks. Each data
block line starts with a flexible option list (e.g.
ID=HXNPTS=4DT=0.25) followed by a //N hint and
then one or more lines of numeric samples.
Parameters:
verbose (int or bool, optional) – Verbosity flag inherited from EDIComponentBase.
logger (object, optional) – Logger instance inherited from EDIComponentBase.
Parse all >TSERIES blocks starting at start_line.
If start_line is None the first block is located
automatically. The method assumes the file already
passed validation.IsEdi._assert_edi() upstream.
Header options are typed heuristically. Integer-like tokens
become integers. Otherwise they are parsed as floats when
possible, and finally left as strings. The common aliases
id, npts and dt are mirrored onto block fields
for convenience.