Closed Teschl closed 3 months ago
Neat! I was thinking about adding some kind of gradient noise generator to the testing apparatus for libtopotoolbox
, but I think you are right that it doesn't really make sense to implement it in the library itself at least for now.
Does it make sense to declare opensimplex
an optional dependency of the package? This could be useful going forward if we want to have users install a few packages just to run the examples.
I added the optional dependency to the pyproject.toml
and modified the error message when trying to use gen_random()
to prompt the user to install with opensimplex
. Right now its pip install .[opensimplex]
. I think we can go ahead and merge if you want @wkearn.
Useful to better visualize changes when using
fillsinks()
for example. I used opensimplex to compute the array. I don't think it's necessary to implement Simplex or Perlin noise inlibtopotoobox
since it's only use is for testing or examples. Nevertheless, I think it's a nice addition to have.opensimplex
will not be automatically installed, but the user will be prompted to install it when trying to usetopotoolbox.GridObject.gen_random()
.We'll probably also need a better name than
gen_random
since it's not really random.