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

Update sustainability element titles, removed deleted element, make targets unique #425

Merged
merged 4 commits into from
Nov 12, 2023

Conversation

duncandewhurst
Copy link
Contributor

@duncandewhurst duncandewhurst commented Nov 9, 2023

Related issues

Description

Merge checklist

If there are changes to project-schema.json or project-package-schema.json:

  • Update the examples:
    • docs/examples/example.json
    • docs/examples/blank.json
  • Run ./manage.py pre-commit to update docs/_static/i8n.csv

If you added a new definition to the schema, run ./manage.py pre-commit.

If you added a new codelist:

  • Add an entry to docs/reference/codelists.md

@duncandewhurst duncandewhurst changed the title mapping/sustainability.yaml: Update titles, removed deleted element Update sustainability element titles, removed deleted element, make targets unique Nov 9, 2023
@duncandewhurst duncandewhurst marked this pull request as ready for review November 9, 2023 23:02
Copy link
Member

@jpmckinney jpmckinney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments. Feel free to merge once resolved.


filename = basedir / 'mapping' / 'sustainability.yaml'

source = csv_reader(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment with a link to the spreadsheet itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 6b1a950

manage.py Outdated
@@ -808,6 +808,55 @@ def lint(filename, additional_properties):
write_yaml_file(filename, elements)


@cli.command()
def update_sustainability_elements():
"""Update mapping/sustainability.yaml"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this interact with update_sustainability_docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function updates the CoST IDS elements in sustainability.yaml, using the spreadsheet in which CoST maintain the sustainability elements as an input, whilst update_sustainability_docs updates the Markdown mapping documentation, using sustainability.yaml as an input.

I've updated the docstrings in 6b1a950

@duncandewhurst duncandewhurst merged commit 97ec8a4 into 0.9-dev Nov 12, 2023
10 checks passed
@duncandewhurst duncandewhurst deleted the 419-update-sustainability-elements branch November 12, 2023 20:23
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.

Socioeconomic assessments of transition and decommissioning costs
2 participants