Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Corpus - Fix contexts to be compatible between sessions #966

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

PrimozGodec
Copy link
Collaborator

Issue

Contexts in Corpus widgets are incompatible between Python sessions since Python uses random seeds while computing hashes. It causes settings not to persist between sessions.

Description of changes

Use hashlib.md5 instead of Python's hash which will always return the same value.

Includes
  • Code changes
  • Tests
  • Documentation

@PrimozGodec PrimozGodec marked this pull request as ready for review April 24, 2023 08:44
@lanzagar lanzagar merged commit 46493fa into biolab:master Apr 24, 2023
@PrimozGodec PrimozGodec deleted the corpus-settings branch April 24, 2023 09:02
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.

2 participants