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

Biomass functions as Lua #2

Open
jpy-luke opened this issue Jan 5, 2023 · 0 comments
Open

Biomass functions as Lua #2

jpy-luke opened this issue Jan 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jpy-luke
Copy link
Contributor

jpy-luke commented Jan 5, 2023

Rewrite biomass functions migrated in #1 into a lua script file. The file should return an entry point function with signature ReferenceTree, int => list. If ReferenceTree as parameter gives trouble, alternatively do list, int => list where the parameter list contains all necessary variables from the ReferenceTree.

Create a runner function with signature ReferenceTree, int => list. It can be implemented like was done in lukefi.metsi.forestry.cross_cutting.cross_cutting_lupa.

Create Unit test for result equivalence like is done with cross_cutting implementations.

Create a wrapper function ReferenceTree, int, str => list for biomass calculation like lukefi.metsi.forestry.cross_cutting.cross_cutting.cross_cut, which is able to choose either the "py" implementation or "lupa" implementation

We'll make a Metsi application issue for taking this into use afterwards.

@jpy-luke jpy-luke added the enhancement New feature or request label Jan 5, 2023
@jpy-luke jpy-luke added this to the Operation optimization milestone Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant