Replies: 2 comments
-
|
Y’all might be interested in a lower-level and less ambitious Python wrapper for the FVS API I’ve been developing here https://github.com/Vibrant-Planet-Open-Science/fvs2py It won’t have a lot of the bells and whistles that @tharen had working at one point in this repo. My approach is much lighter weight and similar to rFVS, but is easier to keep working using containerized version of FVS. I don’t attempt to refactor the Fortran 77 code base at all, just wrap it as-is. I’ve also been working on a REST API here: https://github.com/Vibrant-Planet-Open-Science/microfvs Like @tharen I'm doing these projects off the side of my desk, so maintenance and dealing with breaking changes in the FVS source code are |
Beta Was this translation helpful? Give feedback.
-
A while back I moved the project into a GitHub organization, forest-modeling/PyFVS. At the time I thought that might make it easier for others to contribute. In hindsight I don't think it mattered. Over there I do try to update it periodically, tracking the main FVS branch. I will occasionally add features, FVS keywords to the keyword generator, update support for Python versions, add FVS variants, and compiler version. Most recently I made a push to bring it up to date with current Python, Numpy, and FVS revisions as there were some breaking changes a few versions back in those projects. I also recently added a callback feature for runtime interaction with the FVS grow loop. This facilitates interactions with external code, runtime variable and array manipulation, conceptually similar to the core FVS start-stop feature, but pythonic with no overhead. As @d-diaz mentioned, this is mostly a side project that I started to support workflows at my day job. That said I'm happy to collaborate, field questions, consider pull requests, etc. There is not currently a published PyPI or Conda-Forge package, however the GitHub project does build binary wheel files for recent Python versions on both Linux (Ubuntu) and Windows. The wheel files for the most recent build (September) can be found in the GitHub Actions for the project. The extension compiles using Meson and Ninja based on build code adapted from the SciPy project. The documentation is of course light and outdated, so I would suggest looking through main.py and fvs.py in the pyfvs package folder, as well as the tests folder for inspiration and usage. Speaking of tests, there are a few, mainly just to verify some features are working. But also a few tests from the FVS base can be run as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was curious why this software development was paused/stopped?
Beta Was this translation helpful? Give feedback.
All reactions