Emissions GQL, load and cache from etsource#1727
Conversation
…altered csv structures
|
Based on the altered csv structure, I've updated the branch slightly - I will explain further online @noracato but basically the input csvs were split into two separate csvs and the column structure was altered slightly. There is a slight functional difference in that you need to now specify energetic/non_energetic as 'type': I also added a lot of spec - there are a couple of TODOs where I wasn't sure whether returning an error or nil was better. The fixtures have been updated to match the expected input from etsource, and I also tested using those fixtures in etsource and sandboxing results, which worked well. Ideally the fixtures would end up with a few more values and we can adjust the expectations in the spec at that point. |
|
Let's discuss this as well. |
|
Let me know when you have time 👍 |
Introduces a new
Qernel::Emissionsclass, containing hashed keys for getting and setting emissions from the newemissions.csv, for each dataset in ETSource.It mimicks the behaviour of
Qernel::Areain the sense ofarea_attributes. However, emissions can be queried by a sector scope.Examples
Still to do:
Qernel::Emissions