1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

fix subprocess.check_output bug (#1409)

* fix_check_output_bug

* change_log_info

* recover_feature
This commit is contained in:
Linlang
2023-01-06 21:44:23 +08:00
committed by GitHub
parent 0f3abfed74
commit 7f08e6c7b3

View File

@@ -371,7 +371,7 @@ class MLflowRecorder(Recorder):
out = subprocess.check_output(cmd, shell=True)
self.client.log_text(self.id, out.decode(), fname) # this behaves same as above
except subprocess.CalledProcessError:
logger.info(f"Fail to log the uncommitted code of $CWD when run `{cmd}`")
logger.info(f"Fail to log the uncommitted code of $CWD({os.getcwd()}) when run {cmd}.")
def end_run(self, status: str = Recorder.STATUS_S):
assert status in [