EcoJulia / NeutralLandscapes.jl

Generation of neutral landscapes in Julia.
https://ecojulia.github.io/NeutralLandscapes.jl/dev/
MIT License
16 stars 2 forks source link

code organisation #25

Closed mkborregaard closed 3 years ago

mkborregaard commented 3 years ago

Do we really need small files for every algorithm? Or would NeutralLandscapes.jl, utils.jl and algorithms.jl be clearer?

tpoisot commented 3 years ago

I assumed that more algorithms would require their own helper functions, which has proven... untrue so far. That being said, a file for each algorithm makes Ctrl-P very effective at navigating the repo. No strong opinion here.

rafaqz commented 3 years ago

Perlin noise is pretty big - it has multiple helper functions! But yes the other methods are a bit light on. It does make it easy to find formulations, which is nice. And we could probably fill out the docs a bit.

We organise Dispersal.jl like this, except with a bit of clustering - similar algorithms can be in one file, like exponential/logistic growth are in growth.jl, and both are tested in test/growth.jl.