wildlife-dynamics / ecoscope-workflows

An extensible task specification and compiler for local and distributed workflows.
https://ecoscope-workflows.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Task: set time range #171

Open cisaacstern opened 1 month ago

cisaacstern commented 1 month ago

Working on #168 I realized we don't yet have a way to uniformly set start and end time across various data requests (e.g. patrol events and observations).

Probably easiest if existing since and until args on tasks are changed to a composite datatype (maybe just a 2-tuple for simplicity), that can be passed as a single output from a set_time_range task.

In terms of typing, it would be interesting to see what type we could use to allow React JSONSchema Form to render a datetime picker (instead of just a string field).

walljcg commented 1 month ago

Yep, I fully agree that a 2-tuple of datetime types is needed.