-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement flexible output Times #113
base: development
Are you sure you want to change the base?
Conversation
Might need to be remove to add a full vector of times for init
read (general, need zones), init (general+ zones), variables (need zones), Creation of vector time
Fix compilation error and tests still to be done too
Reading the flexible lines (10::30, 52, 60)
Just Testcase to go
Hi Cyp, Some little points where I would like to have your point of view:
|
Things to check:
|
Results from my stress testing:
In the code.I would have though it is easier to convert range to vector directly in the read input. While that may not be very efficient its a pretty low cost overall and easier to maintain in the future |
Correction
|
Hi @CyprienBosserelle , I saw that you directly read in to create the vector by putting it in "val". |
Not yet, thanks for the reminder. I also broke the test so I need to redo it. I was thinking of doing that in the Sanity check. |
I haven't thought it too much but if we keep the initial structure for the OutputT red but change it in string, we can see if there is a time reference and read them accordingly in the sanity check (as digit or date)? I suppose all of this would be done in the sanity check after just reading basically the input in the readInput. Happy to implement this if you this it can work! |
Now with Dates!Ok I shuffled a few things around and only had time to do minimal testing. But so far it works! how to use:User can now use Ranges are defined with pipe symbol While
Time given in Toutput is either an absolute date or a time relative to the model start time
Now supports unitstime can be given with a unit. supported units are: Dates are also supportedas unique dates or ranges: Note that range step can't be a date but instead need to be second or have a unit attached |
@AliceHarang I think this is done but I'd like to have your opinion about those last changes. |
This is link to the task: Add more fexibility in time of output (Projects for FY24/25)