EcohydrologyTeam / ClearWater-riverine

A 2D water quality transporter model to calculate conservative advection and diffusion of constituents from an unstructured grid of flows
MIT License
6 stars 0 forks source link

Time span handling #62

Closed sjordan29 closed 5 months ago

sjordan29 commented 5 months ago

This PR allows user to run the model only for a specified subset of timesteps.

Use the optional datetime_range input to the ClearwaterRiverine class upon instantiation to leverage this functionality. datetime_range can either be a tuple of integers (indicating datetime indices) or a tuple of strings (with start and end datetime). By default, the model instantiates the entire time domain if datetime_range is not specified.

This PR also adds some initial unit testing of ClearwaterRiverine.