-
Notifications
You must be signed in to change notification settings - Fork 41
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
user-defined upsampling resolution #990
user-defined upsampling resolution #990
Conversation
020178b
to
13ee8dc
Compare
Hi @mouhamadalmounayar sorry for the delay reviewing this - we're just fixing another bug we found in time-sync before incorporating your PR. |
Hi @mouhamadalmounayar I’ve reviewed the PR and it works well with simple time series like:
However, it throws a defined error in more complex cases, such as this manifest name: time-sync
description: successful path
tags:
initialize:
output:
- yaml
plugins:
'time-sync':
method: TimeSync
path: 'builtin'
config:
start-time: '2023-12-12T00:00:00.000Z'
end-time: '2023-12-12T00:01:00.000Z'
interval: 5
allow-padding: true
upsampling-resolution: 5
parameter-metadata:
outputs:
energy-cpu:
unit: KWH
description: energy
aggregation-method: sum
tree:
children:
child:
pipeline:
compute:
- time-sync
inputs:
- timestamp: '2023-12-12T00:00:00.000Z'
duration: 1
energy-cpu: 0.001
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
energy-cpu: 0.001
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
energy-cpu: 0.001
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
energy-cpu: 0.001 Could you please take a look and fix it? |
Hi @manushak, since the upsampling resolution is set to |
@mouhamadalmounayar, you’re right. I’ve updated the manifest but still get the same error. The durations are now 5, 7, and 30. name: time-sync
description: successful path
tags:
initialize:
output:
- yaml
plugins:
'time-sync':
method: TimeSync
path: 'builtin'
config:
start-time: '2023-12-12T00:00:01.000Z'
end-time: '2023-12-12T00:01:00.000Z'
interval: 5
allow-padding: true
upsampling-resolution: 5
parameter-metadata:
outputs:
energy-cpu:
unit: KWH
description: energy
aggregation-method: sum
tree:
children:
child:
pipeline:
compute:
- time-sync
inputs:
- timestamp: '2023-12-12T00:00:01.000Z'
duration: 5
energy-cpu: 0.001
- timestamp: '2023-12-12T00:00:06.000Z'
duration: 7
energy-cpu: 0.001
- timestamp: '2023-12-12T00:00:13.000Z'
duration: 30
energy-cpu: 0.001 |
@manushak This is also normal according to the constraints needed for the upsampling resolution. For the upsampling resolution not to cause issues for resampling it needs to be a divisor of all the durations, the interval and the paddings. |
@mouhamadalmounayar Also we had changes on time sync after your PR which have fixed bugs. So please rebase your branch and resolve the conflicts. |
Signed-off-by: mouhamadalmounayar <[email protected]>
Signed-off-by: mouhamadalmounayar <[email protected]>
13ee8dc
to
e22feb8
Compare
@mouhamadalmounayar I'm unable to run the following manifest (seems all constraints are preserved in this case):
can you please check? |
@narekhovhannisyan For this manifest, there is a gap of |
@mouhamadalmounayar ok makes sense, in that case, can we have more granular error messages so they will state what's wrong ? Currently error message is the same for all cases: |
yes, on it. |
…mpling resolution Signed-off-by: mouhamadalmounayar <[email protected]>
9e08d52
into
Green-Software-Foundation:main
Types of changes
A description of the changes proposed in the Pull Request
Added the possibility to provide a custom upsampling resolution to time-sync in the model config.
1s
Config Error
is thrown.