Skip to content
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

Refactor emissions pkg #16

Merged
merged 4 commits into from
Dec 24, 2023
Merged

Refactor emissions pkg #16

merged 4 commits into from
Dec 24, 2023

Conversation

mahendrapaipuri
Copy link
Owner

  • Make pkg more modular and extensible
  • Add Electricity Maps data source
  • Export all available emission factors
  • Add tests

* New implementation is more modular and extensible

* Each emission source is split into separate file and register themselves into factory

* In main file, we loop over factories and get emission factories from diff sources

* Added new electicity maps source

* OWID data is included in pkg as JSON file

* Countries data is included in pkg to convert to and from from ISO 2 to ISO 3

* Added tests for each source

Signed-off-by: Mahendra Paipuri <[email protected]>
* Simplified collector as most of the logic is in emissions pkg now

Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri added enhancement New feature or request maintenance General maintenance labels Dec 24, 2023
@mahendrapaipuri mahendrapaipuri merged commit fde0b28 into main Dec 24, 2023
1 of 4 checks passed
@mahendrapaipuri mahendrapaipuri deleted the refactor_emissions_pkg branch December 24, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant