Skip to content

FIX : fixed tuples in hashing, by converting them to lists #498

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

Merged
merged 4 commits into from
Oct 8, 2020

Conversation

huguesdevimeux
Copy link
Member

@huguesdevimeux huguesdevimeux commented Oct 1, 2020

List of Changes

Explanation for Changes

Generally, scene caching iteratively check in every iterables for circular references. If one is found, then the value in the iterable causing the circular reference is replaced. Same if an element has already been processed.
The issue is, if the iterable is a tuple, as tuples are immutable, it is impossible to modyuf it

Testing Status

  • Added a test for this case.

Acknowledgement

@huguesdevimeux huguesdevimeux added the pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review! label Oct 1, 2020
@huguesdevimeux huguesdevimeux self-assigned this Oct 1, 2020
@huguesdevimeux huguesdevimeux changed the title fixed tuples in hashing, but converting them to lists FIX : fixed tuples in hashing, by converting them to lists Oct 1, 2020
Hugues Devimeux and others added 2 commits October 1, 2020 09:55
Co-authored-by: kilacoda <65204531+kilacoda@users.noreply.github.com>
Copy link
Contributor

@nilaybhatia nilaybhatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but not sure why tests are failing.

@eulertour eulertour mentioned this pull request Oct 1, 2020
13 tasks
@behackl behackl added this to the Release v0.1 milestone Oct 1, 2020
@huguesdevimeux
Copy link
Member Author

LGTM, but not sure why tests are failing.

Windows tests are curently failing on the whole repo ;/

Copy link
Member

@behackl behackl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Please consider the minor suggestion I made for slightly reformatting the comment.

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
@leotrs leotrs merged commit 07343cc into ManimCommunity:master Oct 8, 2020
@huguesdevimeux huguesdevimeux deleted the fix-tuple-caching branch October 20, 2020 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:easy review There is nothing particular (i.e, it's about a general/small thing) to know for review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG : kwargs in ApplyMethod Breaks Scene Caching Scene Caching Tries to Access the Wrong File in Certain Circumstances
5 participants