Open jeromaerts opened 2 years ago
Based on student feedback:
Can we make it possible to pass non-iterables and iterables to the function coords_to_indices?
https://github.com/eWaterCycle/ewatercycle/blob/71bcc306b2ad2dfa224e793a3a9c30595174bbc5/src/ewatercycle/models/wflow.py#L182-L184
This could be addressed by modifying set_value_at_coords so it can take either a float or Interable[float], and turning the floats into a tuple of floats before passing to _coords_to_indices.
set_value_at_coords
float
Interable[float]
_coords_to_indices
https://github.com/eWaterCycle/ewatercycle/blob/a8fe6e577d6696fbe5f66599de4a26dc3dab637c/src/ewatercycle/base/model.py#L213C9-L213C28
Based on student feedback:
Can we make it possible to pass non-iterables and iterables to the function coords_to_indices?
https://github.com/eWaterCycle/ewatercycle/blob/71bcc306b2ad2dfa224e793a3a9c30595174bbc5/src/ewatercycle/models/wflow.py#L182-L184