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 cattr in Python 3.9 #967

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Fix cattr in Python 3.9 #967

merged 2 commits into from
Sep 20, 2022

Conversation

talmo
Copy link
Collaborator

@talmo talmo commented Sep 20, 2022

Description

cattrs seems to break in newer versions of Python when using forward references. This PR is a workaround so we can get M1 support working again.

Relevant:

Types of changes

  • Bugfix
  • New feature
  • Refactor / Code style update (no logical changes)
  • Build / CI changes
  • Documentation Update
  • Other (explain)

Does this address any currently open issues?

[list open issues here]

Outside contributors checklist

  • Review the guidelines for contributing to this repository
  • Read and sign the CLA and add yourself to the authors list
  • Make sure you are making a pull request against the develop branch (not main). Also you should start your branch off develop
  • Add tests that prove your fix is effective or that your feature works
  • Add necessary documentation (if appropriate)

Thank you for contributing to SLEAP!

❤️

@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Merging #967 (d761d9a) into develop (be89412) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #967   +/-   ##
========================================
  Coverage    67.55%   67.55%           
========================================
  Files          130      130           
  Lines        22246    22248    +2     
========================================
+ Hits         15028    15030    +2     
  Misses        7218     7218           
Impacted Files Coverage Δ
sleap/instance.py 88.74% <100.00%> (+0.03%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@talmo talmo marked this pull request as ready for review September 20, 2022 23:19
@talmo talmo merged commit 4d1154e into develop Sep 20, 2022
@talmo talmo deleted the talmo/py39-fix branch September 20, 2022 23:29
talmo added a commit that referenced this pull request Oct 10, 2022
* Fix printing of auto-selected GPU free memory (#955)

* Fix printing of auto-selected GPU free memory

* Fix printing in inference

* Lint

* Fix add suggestions when target is current video (#956)

* Fix export cli arg parsing (#962)

* Fix cattr in Python 3.9 (#967)

* Remove structuring hook for forward reference and handle manually

* Handle missing key

* Add sample movies to docs (#992)

* Add initial examples

* Add clips for all datasets

* Add quick example clip

* Typo on instance count for flies13

Co-authored-by: Liezl Maree <[email protected]>
Co-authored-by: sheridana <[email protected]>
@roomrys roomrys mentioned this pull request Nov 11, 2022
roomrys added a commit that referenced this pull request Nov 11, 2022
Docs update (#993)

* Fix printing of auto-selected GPU free memory (#955)

* Fix printing of auto-selected GPU free memory

* Fix printing in inference

* Lint

* Fix add suggestions when target is current video (#956)

* Fix export cli arg parsing (#962)

* Fix cattr in Python 3.9 (#967)

* Remove structuring hook for forward reference and handle manually

* Handle missing key

* Add sample movies to docs (#992)

* Add initial examples

* Add clips for all datasets

* Add quick example clip

* Typo on instance count for flies13
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