-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from dlr-pa/dev
Release of version 0.9.0
- Loading branch information
Showing
40 changed files
with
2,251 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: GitHub Actions Demo | ||
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 | ||
on: [push] | ||
jobs: | ||
Explore-GitHub-Actions: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.11.5"] | ||
steps: | ||
- name: Setup conda environment | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: false | ||
python-version: ${{ matrix.python-version }} | ||
miniforge-version: latest | ||
- name: Conda info | ||
run: | | ||
conda info | ||
conda list | ||
- name: Set sys.path | ||
run: | | ||
python -c "import sys, os; sys.path.append(os.getcwd()); print(sys.path)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow will setup conda, create a virtual environment with required packages and dependencies, | ||
# execute script utils/create_test_files.py, | ||
# and run tests with pytest | ||
|
||
name: Install and run tests | ||
|
||
on: | ||
push: | ||
branches: [ "main", "dev" ] | ||
pull_request: | ||
branches: [ "main", "dev" ] | ||
|
||
#permissions: | ||
# contents: read | ||
|
||
jobs: | ||
build: | ||
name: Install and test on (${{ matrix.os }}, Miniforge) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
python-version: ["3.11.5"] | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup conda environment | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
auto-update-conda: false | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: environment_dev.yaml | ||
activate-environment: oac | ||
miniforge-version: latest | ||
- name: Conda info | ||
run: | | ||
conda info | ||
conda list | ||
- name: Create test files | ||
run: | | ||
cd utils/ | ||
chmod a+x create_test_files.py | ||
python create_test_files.py | ||
cd .. | ||
- name: Test with pytest | ||
run: | | ||
cd tests/ | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ dependencies: | |
- isort | ||
- scipy | ||
- ipympl | ||
- openpyxl | ||
- openpyxl | ||
- deepmerge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ dependencies: | |
- xarray | ||
- netcdf4 | ||
- scipy | ||
- deepmerge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
"""Demonstration of OpenAirClim simulation run""" | ||
|
||
# if you have not added the oac folder to your PATH, then you also need to | ||
# import sys and append to PATH using sys.path.append(`.../oac`) | ||
import os | ||
import openairclim as oac | ||
|
||
# change directory to match current file | ||
os.chdir(os.path.dirname(os.path.abspath(__file__))) | ||
oac.run("example.toml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
|
||
__title__ = "OpenAirClim" | ||
__version__ = "2.8.3" | ||
__version__ = "0.9.0" | ||
__author__ = "OpenAirClim Team" | ||
__email__ = "[email protected]" | ||
__license__ = "Apache 2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.