mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 16:26:55 +08:00
Update R wrapper logic
This commit is contained in:
@@ -533,6 +533,8 @@ class RecorderWrapper(Wrapper):
|
|||||||
|
|
||||||
def register(self, provider):
|
def register(self, provider):
|
||||||
if self._provider is not None:
|
if self._provider is not None:
|
||||||
|
expm = getattr(self._provider, "exp_manager")
|
||||||
|
if expm.active_experiment is not None:
|
||||||
raise RecorderInitializationError(
|
raise RecorderInitializationError(
|
||||||
"Please don't reinitialize Qlib if QlibRecorder is already acivated. Otherwise, the experiment stored location will be modified."
|
"Please don't reinitialize Qlib if QlibRecorder is already acivated. Otherwise, the experiment stored location will be modified."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user