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

Switch to nomenclature-template structure #6

Merged
merged 6 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/black.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Ruff
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Common definitions
common-definitions/

### IntelliJ PyCharm ###
.idea/

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Scenario Explorer Workflow Template

Copyright 2022-2023 IIASA
Copyright 2022-2024 IIASA

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Code style: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

## Overview

Expand All @@ -12,6 +12,9 @@ To use this template for a project, do the following:
- Create a new repository from this template
- Update the title and overview section of this Readme
- Start adding definitions and mappings
- If you want to use the [common-definitions](https://github.com/IAMconsortium/common-definitions)
developed and maintained by the IAMC, rename the file `nomenclature_template.yaml`
to `nomenclature.yaml`.

### Project nomenclature

Expand Down
2 changes: 2 additions & 0 deletions definitions/region/common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- common:
- World
3 changes: 3 additions & 0 deletions definitions/variable/variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Emissions|CO2:
description: Total net emissions of carbon dioxide (CO2)
unit: Mt CO2/yr
10 changes: 0 additions & 10 deletions nomenclature.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions nomenclature_template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repositories:
common-definitions:
url: https://github.com/IAMconsortium/common-definitions.git/
definitions:
variable:
repository: common-definitions
region:
repository: common-definitions
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyam-iamc >= 1.0 # the `pyam` package is released on pypi under this name
nomenclature-iamc >= 0.11
pyam-iamc >= 2.1 # the `pyam` package is released on pypi under this name
nomenclature-iamc >= 0.16
Loading