From 7152f8321b2ae8c32f44ba8bc771bb01bed4705a Mon Sep 17 00:00:00 2001 From: zhupr Date: Thu, 19 Nov 2020 16:16:27 +0800 Subject: [PATCH] update dump_bin docs --- docs/component/data.rst | 2 +- scripts/dump_bin.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/component/data.rst b/docs/component/data.rst index 819fb2c4f..195ed482d 100644 --- a/docs/component/data.rst +++ b/docs/component/data.rst @@ -59,7 +59,7 @@ Supposed that users prepare their CSV format data in the directory ``~/.qlib/csv .. code-block:: bash - python scripts/dump_bin.py dump --csv_path ~/.qlib/csv_data/my_data --qlib_dir ~/.qlib/qlib_data/my_data --include_fields open,close,high,low,volume,factor + python scripts/dump_bin.py dump_all --csv_path ~/.qlib/csv_data/my_data --qlib_dir ~/.qlib/qlib_data/my_data --include_fields open,close,high,low,volume,factor After conversion, users can find their Qlib format data in the directory `~/.qlib/qlib_data/my_data`. diff --git a/scripts/dump_bin.py b/scripts/dump_bin.py index abe75d2f0..2e44c454e 100644 --- a/scripts/dump_bin.py +++ b/scripts/dump_bin.py @@ -242,6 +242,9 @@ class DumpDataBase: def dump(self): raise NotImplementedError("dump not implemented!") + def __call__(self, *args, **kwargs): + self.dump() + class DumpDataAll(DumpDataBase): def _get_all_date(self):