sizespectrum / mizer

Multi-species size-based ecological modelling in R
https://sizespectrum.org/mizer
38 stars 43 forks source link

Better error message when `time_range` is empty #255

Closed gustavdelius closed 10 months ago

gustavdelius commented 2 years ago

To see the current error message:

sim <- project(NS_params, t_max = 1)
plotSpectra(sim, time_range = 0.1)

Perhaps get_time_elements() should issue an error when no elements are selected.