Skip to content

Commit 3866172

Browse files
author
EnliteAI Bot
committed
Add environment profiling support with tests for event logging and plotting.
(Issue - null)
1 parent df072b3 commit 3866172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maze/core/wrappers/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(self, env: EnvType):
8181
self.log_profiling_events = True
8282
if not hasattr(self, 'core_env'):
8383
self.log_profiling_events = False
84-
if not self.core_env.profile_env:
84+
if hasattr(self, 'core_env') and not self.core_env.profile_env:
8585
self.log_profiling_events = False
8686

8787
self.__profiling_events = None

0 commit comments

Comments
 (0)