-
Notifications
You must be signed in to change notification settings - Fork 7
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
Use times-info file for parameter mappings #148
Conversation
I have not been through the changes yet, but how about:
|
@siddharth-krishna I can see that my previous suggestion is not relevant. :-) |
174e038
to
31ae9f0
Compare
Note that parameters starting with UC can be defined also in any TFM_* tables. The Column for specifying the |
Thanks @Antti-L. That's a very good point. Do you know whether it is used in any of the Demos (i.e. to know whether we have a test case available already)? Regarding input data overwriting when it is specified in the same workbook, we don't explicitely control it yet. Now it depends on the order the tables are read in and since we do use parallel processing, it can vary. I believe it is a good idea to implement a rule to ensure consistent result in case there is overwriting. |
I cannot be sure, but I doubt that not in the Demos. However, I am, for one, using such quite a lot for scenario-specific UC data. |
@siddharth-krishna I've removed the part of the code that was doing renaming in the mapping; please check. |
The remaining regression on |
As discussed, I'm getting mappings for parameters from the
times-info.json
config file. The rule I'm using is that parameters starting withUC
are extracted from the~UC_T
table, and all others from~FI_T
.There are some issues still:
B
andE
are intimes-info.json
, but they need to be extracted from~TimePeriods
. I'd rather not modify the rule above to have a special case for these two, is it worth considering adding the tag totimes-info.json
?times_mapping.txt
) don't match the headers we generate (from the new mappings). I suppose when this isn't a big issue for now and when we deprecatetimes_mapping.txt
we can switch to generating CSVs using the new mappings as well? For now, I've changed the compare code to still compare even if col headers don't match.~UC_COMNET
, for some reason the commodity isn't being exploded..times-info.json
uses different field names than we do. I propose we change them in the json file to be consistent with the code?