Closed rafaqz closed 3 years ago
This PR reorganizes the kernel rule syntax so they are easier to define (again for nice code in the methods paper!) The syntax changes can be seen in the tests, but basically you can do:
InwardsDispersal(radius=2, formulation=ExponentialKernel())
And not create a DispersalKernel manually at all. The syntax is identical for OutwardsDispersal.
DispersalKernel
OutwardsDispersal
It also separates out the formulation and distance methods into separate files so the various components are clearer.
Rule
/test/newrulename.jl
Description
This PR reorganizes the kernel rule syntax so they are easier to define (again for nice code in the methods paper!) The syntax changes can be seen in the tests, but basically you can do:
And not create a
DispersalKernel
manually at all. The syntax is identical forOutwardsDispersal
.It also separates out the formulation and distance methods into separate files so the various components are clearer.
Changes (choose one only, with x or click after creating PR):
Checklist:
For bugfixes
For new
Rule
s/test/newrulename.jl