Skip to content
Snippets Groups Projects
Commit 9bd6dc71 authored by Martin Lange's avatar Martin Lange
Browse files

add docstring, update changelog

parent 33b62e8e
No related branches found
No related tags found
1 merge request!105Weighted sum merger
Pipeline #122457 passed with stages
in 2 minutes and 39 seconds
......@@ -5,6 +5,11 @@
### Data and metadata rework
* Outputs check compatibility between metadata of inputs if there is more than one target input (!104)
* Add data tools function `check_units(lhs, rhs)` to check for convertibility (!105)
### Components
* Add `merger.WeightedSum` for aggregation of multiple inputs
## [v0.4.0-rc.2]
......
......@@ -6,7 +6,17 @@ from ..tools.log_helper import LogError
class WeightedSum(AComponent):
"""Merges inputs by weighted sum"""
"""Merges inputs by weighted sum
Parameters
----------
inputs : list(str)
Base input names; will create two inputs for each entry: "<name>" and "<name>_weight"
start : datetime.datetime
Starting time, for initial data exchange
grid : GridBase or None
Expected input grid specification; tries to obtain grid specs from inputs if set to None
"""
def __init__(self, inputs, start, grid=None):
super().__init__()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment