Skip to content

Update util.py#51

Open
ZJQuanterrrr wants to merge 1 commit into
yandex-research:mainfrom
ZJQuanterrrr:patch-1
Open

Update util.py#51
ZJQuanterrrr wants to merge 1 commit into
yandex-research:mainfrom
ZJQuanterrrr:patch-1

Conversation

@ZJQuanterrrr

Copy link
Copy Markdown

The original code inherits a Timer class from the zero package (zero.Timer). However, the current version of the zero library (>=0.6.3) no longer includes a Timer attribute, which raises the following error: AttributeError: module 'zero' has no attribute 'Timer'

To fix the issue, I replaced the usage of zero.Timer with a custom Timer implementation inside util.py. This ensures compatibility with recent versions of the zero package and avoids dependency on removed attributes.

The original code inherits a Timer class from the zero package (zero.Timer). However, the current version of the zero library (>=0.6.3) no longer includes a Timer attribute, which raises the following error:
AttributeError: module 'zero' has no attribute 'Timer'

To fix the issue, I replaced the usage of zero.Timer with a custom Timer implementation inside util.py. This ensures compatibility with recent versions of the zero package and avoids dependency on removed attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant