8000 Fixes and py311 by crzdg · Pull Request #43 · tmcclintock/FrisPy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Fixes and py311 #43

Merged
merged 4 commits into from
May 10, 2023
Merged

Fixes and py311 #43

merged 4 commits into from
May 10, 2023

Conversation

crzdg
Copy link
Contributor
@crzdg crzdg commented Apr 15, 2023

I refactored the notebook, so it should work again. Assigned eom to object in order to access it through the notebook.
Uses dict-access for the result.

I also faced problems with using Python 3.11. Turns out default values for custom classes needs to be created through dataclasses.field and its default_factory. So I changed this, thus frispy should also be able to support Python 3.11 now.

As matplotlib is a hard dependency and not needed for the package to work I moved it to the dev-dependencies.

Also, I fix the warning for the deprecation of np.float. As suggested it uses now float instead. With this change tests now also run with Python >3.10.

Should be able to close #42

Copy link
Owner
@tmcclintock tmcclintock left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this!

@tmcclintock tmcclintock merged commit 6e1d5ca into tmcclintock:main May 10, 2023
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.

Cannot import disc from the top level namespace
2 participants
0