Skip to content

Commit

Permalink
Merge pull request #109 from empowerplan/feature/integrate_oemof_tsam…
Browse files Browse the repository at this point in the history
…_datapackage

Integrate oemof tsam datapackage
  • Loading branch information
nesnoj authored May 2, 2024
2 parents 60ffa17 + 837cb45 commit 33530c2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 752 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe
- update mapengine to v1.4.1
- Update layer list and replace wind and pv ground model data from MaStR with
data from RPG
- django-oemof to v0.18.0
- oemof.tabular to support TSAM

### Changed
- pre results can be shown before simulation has finished
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ curl -sSL https://install.python-poetry.org | python3 -
poetry install
```

Install oemof.tabular manually, as there is currently a problem with poetry:

```
pip install git+https://github.com/oemof/oemof-tabular@features/add-tsam-to-datapackage
```

The project uses [pre-commit](https://pre-commit.com/) in order to check for errors and
linting bugs before commits.
To activate pre-commit simply run:
Expand Down
3 changes: 3 additions & 0 deletions compose/local/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ SHELL ["/bin/bash", "-c"]
COPY ./pyproject.toml ./poetry.lock ./
RUN source /venv/bin/activate && python -m pip install --upgrade pip && pip install --no-cache-dir poetry && poetry install --no-root

# Install oemof.tabular manually as there is a problem with poetry
RUN source /venv/bin/activate && python -m pip install git+https://github.com/oemof/oemof-tabular@features/add-tsam-to-datapackage

COPY ./compose/production/django/entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint
Expand Down
3 changes: 3 additions & 0 deletions compose/production/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ SHELL ["/bin/bash", "-c"]
COPY ./pyproject.toml ./poetry.lock ./
RUN source /venv/bin/activate && python -m pip install --upgrade pip && pip install --no-cache-dir poetry && poetry install --no-root --without dev

# Install oemof.tabular manually as there is a problem with poetry
RUN source /venv/bin/activate && python -m pip install git+https://github.com/oemof/oemof-tabular@features/add-tsam-to-datapackage

COPY ./compose/production/django/entrypoint /entrypoint
RUN sed -i 's/\r$//g' /entrypoint
RUN chmod +x /entrypoint
Expand Down
Loading

0 comments on commit 33530c2

Please sign in to comment.