Add RepeatDateTimeList#98
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support in pyflow for the upcoming ecFlow 5.17.0 RepeatDateTimeList attribute, enabling repeat definitions driven by an explicit (non-uniform / non-contiguous) list of datetimes.
Changes:
- Introduces
RepeatDateTimeListattribute class inpyflow/attributes.py. - Builds an
ecflow.RepeatDateTimeListfrom a Python list of datetime/date/string inputs formatted asYYYYMMDDTHHMMSS.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d701b31 to
eb09295
Compare
marcosbento
left a comment
There was a problem hiding this comment.
After latest changes, it looks good to me!
|
@gmertes , @corentincarton I have gone ahead and fixed the issues raised by Copilot and added a few tests to ensure everything is working. I believe it is ready to merge. |
|
@corentincarton There is still an open issue, regarding how pyflow should detect/handle ecflow versions prior to 5.17.0 which don't have the new I believe we didn't made any special precautions when |
|
regarding the ecflow version dependant features, could a solution be we create a decorator in pyflow that receives a version expression string (">=5.17") that would check the system ecflow version whenever that function/class is used and raise an error with appropriate message if it isn't supported? pyflow already checks for ecflow client presence at runtime, it could also store its version in memory to carry out such checks |
|
Caution This pull request contains changes to GitHub workflows! |
|
@corentincarton Fixed the documentation build failure, but that implied touching the Unfortunately, this change combined with the fact that this is a PR from @gmertes' fork, triggered the "[PR Workflow Check]" which implies a human needs to review the changes. |
|
Caution This pull request contains changes to GitHub workflows! |
6c9a349 to
d14aabc
Compare
|
Caution This pull request contains changes to GitHub workflows! |
d14aabc to
450297c
Compare
|
Caution This pull request contains changes to GitHub workflows! |
450297c to
bad83cd
Compare
|
Caution This pull request contains changes to GitHub workflows! |
|
@colonesej I just pushed the new class decorator |
bad83cd to
345011c
Compare
|
Caution This pull request contains changes to GitHub workflows! |
It looks good to me @marcosbento . we already fail at import if |
345011c to
714c0ee
Compare
|
Caution This pull request contains changes to GitHub workflows! |
714c0ee to
f842645
Compare
|
Caution This pull request contains changes to GitHub workflows! |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…alues Add test to ensure the functionality is as documented.
This allows using the latest changes when building the documentation.
As per the documentation of readthedocs/actions/preview@v1.
f842645 to
d16cc03
Compare
|
Caution This pull request contains changes to GitHub workflows! |
|
@corentincarton , @colonesej , @gmertes All done from my side... This one is waiting for someone to push the button! |
Description
The next ecflow release 5.17.0 will have a new
RepeatDateTimeList. It creates a repeat from any list of strings inyyyymmddTHHMMSSformat.The difference with the existing
RepeatDateTimeis that the list doesn't need to be continuous nor uniform, offering more flexibility.Contributor Declaration
By opening this pull request, I affirm the following: