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

Fix plant owner names and add LEI codes #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nicholaskeller
Copy link

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The database displays the name in the owner field with a percentage. For some Denmark plants, the percentage ownership is included in the owner name. For example, a plant wholly owned by Vattenfall may have the owner name reported as '100% Vattenfall' instead of 'Vattenfall'. The database does not join well with owner data from the GLEIF database.

Issue Number: 24 and 27

What is the new behavior?

  • Strings assigned to the owner field of Denmark plants are modified to remove any percentage prepended to the owner's entity name.
  • The table in file resources/master_lei_concordance.csv is used to match and append LEI codes to the database output in a new column labeled lei_code.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Addressing part of issue 24, add a new field (`lei_code`) to the output
database. This field holds a reference to a plant's unique LEI in the GLEIF
dataset. This should allow users to connect plant data to LEI ownership
information and ISINs (unique financial instruments).

The `lei_code` field is an alphanumeric string matched to power plants
using the `master_gleif_concordance.csv` dataset.

With this update, there are 8132 plants with known `lei_code`s.

There are no changes to the database except for the addition of `lei_code`.

Database Version: 1.2.3
Bug: The Denmark.csv dataset contains data that quantifies ownership
with a percentage, rather than just the name of the entity. For example,
data provided by Vattenfall prepends owner names with their percent
ownership (100% Vattenfall instead of Vattenfall). This can cause
issues with programs that expect owner data to be the entity name only.

This commit fixes this bug.
There are 8 plants affected, all in Denmark.

Net change of 0 plants @ 0 capacity.

Database Version: 1.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant