Skip to content

Updating analysator to a python package structure and renaming to analysator#309

Merged
alhom merged 43 commits intomasterfrom
dev
Mar 4, 2025
Merged

Updating analysator to a python package structure and renaming to analysator#309
alhom merged 43 commits intomasterfrom
dev

Conversation

@alhom
Copy link
Copy Markdown
Member

@alhom alhom commented Feb 28, 2025

This PR changes quite a bit, but the changes are to the module/package layout and the inclusion of a build system.

It is built to be a drop-in replacement (with deprecation warnings to update scripts):
import pytools will work but will also complain to rename the import to import analysator.

This PR enables installing analysator via pip (see README), suggested pip install -e [path-to-analysator-repo] for installing. Pip will thereafter handle installation of dependencies at their relevant versions automatically.

Pip install will also handle installing the VTK library, for which there is also an experimental interface contained within the PR. With the VTK interface, there is also a rudimentary ParaView plugin as well!

alhom added 30 commits December 15, 2024 14:44
…ools dummy module in root for backwards compatibility
…d package discovery. src/pytools remains a bit deeper to be maybe less confusing.
Analysator as a package, now to a fresh `dev` branch for convenience before updating master/new release.
Add and fix an optional depency for the VTK interface. Fixed to VTK 9.2.6 for BVTKnodes compatibility for now.
@alhom
Copy link
Copy Markdown
Member Author

alhom commented Mar 3, 2025

Extra features (isosurface, vtk, and specifically bvtk with more stringent version requirements) got their own entries in the import test matrix. pip install is now used to install dependencies in the tests, so this looks good to on that side as well.

To get all the necessary dependencies:
pip install --editable <path-to-analysator>[all] will now get your the latest and greatest features, them being separately obtainable via [isosurface] (supposing Python >3.8) and [vtk] (fetching VTK > 9.2 for hypertreegrid support).
Maybe this should be default behaviour - is anything still stuck with Python <=3.8?

pip install --editable <path-to-analysator>[bvtk] will get you the version of VTK (9.2.6) which is supported by BVTKnodes. This supposes Python < 3.12.

alhom added 5 commits March 4, 2025 10:14
… Python), lets see if that breaks something. RBFInterpolator seems to be the requirement for 3.7, and it is guarded, so this should be fine.
Better descriptions of installing the vtk support
@alhom alhom merged commit 77c1847 into master Mar 4, 2025
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