ciemss / pyciemss

Causal and probabilistic reasoning with continuous time dynamical systems
Other
12 stars 4 forks source link

Type checking on `sample` for `num_samples` #451

Closed sabinala closed 6 months ago

sabinala commented 6 months ago

Need several tests for num_samples:

We check that the output either "fails gracefully" with an informative error message, or warns us that it has converted to an int.

sabinala commented 6 months ago

Simplest solution: throw an informative error if input to num_samples is not a positive int.