You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is bug or feature request as it depends on intended design. In either case this is low priority and can be easily handled after calling rgcam functions.
With the fixes to #14 and #15 it became apparent that using regions = c() in addSingleQuery or <all-regions/> in the batch query file for addScenario will return results for all regions in a disaggergrated format. This contrasts with the Global region option in the Model Interface GUI, in which regional values are summed/aggergrated to a global values.
I can't quite recall if prior to #14 and #15 being fixed, if the results (for an <all-regions/> batch query) were being aggergrated to a global output or being returned in the disaggregrated form as they are currently. So I wanted to raise this as a potential issue that may have come out of the fixes.
If not and it is working as intended, it might be useful to have such a feature. First for consistency with the MI GUI and that for items like the climate output <all-regions/> implies a global summary. Second, it would reduce the memory demand.
The text was updated successfully, but these errors were encountered:
Yes, it wasn't the intent to change the behavior of the "Global" region (sum all regions). I will fix that.
As mentioned you can just do this in R and generally I have been recommending that to users: Get the query at a disaggregated level and do aggregations later in R. If you decide later it would be useful to look at more detailed results it will be much faster than having to re-query the databases (unless maybe if you are doing massive queries).
There is an example of adding a function add_global_sum in the vignettes as a transformation which might be helpful. I've been thinking of adding other utilities as well such as stripping out rewrite lists from a query and converting it into an R function that could be used in the transformations.
I'll take a look at the add_global_sum function. My eyes glazed over it the other day but my knowledge of the tidyverse has increased greatly over the last 24 hours.
It might be worthwhile add a Warning to the addScenario and addSingleQuery docs (or elsewhere):
"Global sums are not valid for price, yield (?? and other??) queries." This issue caused a little bit of head scratching when I first looked at prices in the MI GUI.
Not sure if this is bug or feature request as it depends on intended design. In either case this is low priority and can be easily handled after calling rgcam functions.
With the fixes to #14 and #15 it became apparent that using
regions = c()
in addSingleQuery or<all-regions/>
in the batch query file for addScenario will return results for all regions in a disaggergrated format. This contrasts with the Global region option in the Model Interface GUI, in which regional values are summed/aggergrated to a global values.I can't quite recall if prior to #14 and #15 being fixed, if the results (for an
<all-regions/>
batch query) were being aggergrated to a global output or being returned in the disaggregrated form as they are currently. So I wanted to raise this as a potential issue that may have come out of the fixes.If not and it is working as intended, it might be useful to have such a feature. First for consistency with the MI GUI and that for items like the climate output
<all-regions/>
implies a global summary. Second, it would reduce the memory demand.The text was updated successfully, but these errors were encountered: