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

Unlazify data and images on comparison #165

Merged
merged 3 commits into from
Sep 21, 2021
Merged

Unlazify data and images on comparison #165

merged 3 commits into from
Sep 21, 2021

Conversation

madig
Copy link
Collaborator

@madig madig commented Sep 10, 2021

Currently, both attributes are only unlazified when you do font1 == font2, but not when comparing the individual attributes like font1.data == font2.data.

@madig madig changed the title Unlazify data and images Unlazify data and images on comparison Sep 10, 2021
@madig madig force-pushed the unlazify-data-images branch from 50ab401 to 5d11c42 Compare September 10, 2021 22:18
@madig madig marked this pull request as ready for review September 10, 2021 22:20
madig added a commit to simoncozens/iondrive that referenced this pull request Sep 10, 2021
src/ufoLib2/objects/misc.py Outdated Show resolved Hide resolved
- It's only relevant for the read() constructor, not for standalone
  instantiation, so no init.
- Standalone instantiation cannot have lazy data by definition, so default
  to False.
@madig madig merged commit d9bc309 into master Sep 21, 2021
@madig madig deleted the unlazify-data-images branch September 21, 2021 14:08
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