baikit.Data
- class baikit.Data(manifest_fn, manifest_dir='input/manifest/')
Bases:
object
Base class of BaiKit
- manifest_fn
Manifest filename.
- Type:
str
- line_dir
Default: “”
- Type:
str
- line_ext
Default: “.txt”
- Type:
str
- line_loadtxt
Default: {“comments”: “#”, “delimiter”: None, “skiprows”: 0, “unpack”: False, “encoding”: “latin1”}
- Type:
dict
- __init__(manifest_fn, manifest_dir='input/manifest/')
- Parameters:
manifest_fn (str) – Manifest filename.
manifest_dir (str, optional) – Manifest directory. Default: “input/manifest/”
Methods
__init__
(manifest_fn[, manifest_dir])- param manifest_fn:
Manifest filename.
Load manifest
- load_manifest() ndarray
Load manifest
Loads manifest file and return manifest lines in list.
- Returns:
List of manifest lines.
- Return type:
numpy.ndarray