Skip to content

Fully support Python version 3.8 again #389

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

LSchueler
Copy link
Member

As noted in PR #386, GSTools doesn't really support py3.8 at the moment due to changes in its dependencies. We have decided to keep supporting py3.8 for now and with this PR, I have fixed all dependency problems for py3.8 support.

@LSchueler LSchueler self-assigned this Jun 30, 2025
@LSchueler LSchueler added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 30, 2025
Comment on lines 26 to 29
mesh_input = meshio.read("hexagon.mesh")
points = mesh_input.points
cells = mesh_input.cells[0].data
mesh = meshio.Mesh(points, {"triangle": cells})
Copy link
Member

@MuellerSeb MuellerSeb Jul 1, 2025

Choose a reason for hiding this comment

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

Isn't the mesh_input already a mesh? Why do we need to extract points and cells to create the mesh again?

Copy link
Member Author

Choose a reason for hiding this comment

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

Their is a difference in the Mesh instance depending on whether it is read in from the "hexagon.mesh" file or created with meshzoo. The code breaks further down, because the cells are not as expected.

Copy link
Member

Choose a reason for hiding this comment

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

Then I would prefer two files read with numpy (one for points[float], one for cells[int]) because this seems odd.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good idea, I just implemented that.

@MuellerSeb
Copy link
Member

Pylint is failing because the config name for whitelisting in pyproject.toml changed:

  • extension-pkg-whitelist should now be extension-pkg-allow-list

@MuellerSeb
Copy link
Member

Maybe we should finally switch to ruff for linting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants