Closed YangchunB closed 3 years ago
Indeed this is a bug which is pretty fundamental: The data needs to be aggregated. It would affect any results which is querying "vintaged" technologies and we have collapsed the vintaging structure (i.e. the dimension that needs to be aggregated).
This fix is simple and I'll put that in now. In the mean time you can do:
data = conn.runQuery(queries[0])
cols = data.columns
data_agg = data.groupby(cols.drop("value").to_list(), as_index=False).sum()
The data_agg
should match the output from the Model Interface which was doing the aggregation.
Thank you for your information. It's very helpful to me.
When querying "elec gen by gen tech", the results will be duplicated and do not match the results of the model interface. I find the following problems have appeared in both wind and solar technology queries. I don't know how to avoid the following problems:
Here is the queries XML: