1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-07 04:50:56 +08:00

fix 'duplicate axis' error when updating cache (#661)

This commit is contained in:
Pengrong Zhu
2021-10-29 22:52:42 +08:00
committed by GitHub
parent 63b823f343
commit 4cecaba618

View File

@@ -927,7 +927,7 @@ class DiskDatasetCache(DatasetCache):
meta = {
"info": {
"instruments": instruments,
"fields": cache_columns,
"fields": list(cache_features.columns),
"freq": freq,
"last_update": str(_calendar[-1]), # The last_update to store the cache
"inst_processors": inst_processors, # The last_update to store the cache
@@ -965,7 +965,7 @@ class DiskDatasetCache(DatasetCache):
fields = d["info"]["fields"]
freq = d["info"]["freq"]
last_update_time = d["info"]["last_update"]
inst_processors = d["info"]["inst_processors"]
inst_processors = d["info"].get("inst_processors", [])
index_data = im.get_index()
self.logger.debug("Updating dataset: {}".format(d))