-
Notifications
You must be signed in to change notification settings - Fork 60
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 #389 from elfi-dev/dev
Release v0.8.1
- Loading branch information
Showing
16 changed files
with
696 additions
and
139 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,42 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: pytest | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
python -m pip install numpy | ||
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | ||
python -m pip install -e . | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=99 --statistics | ||
- name: Test with pytest | ||
run: | | ||
make test |
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ var/ | |
|
||
# Images | ||
*.png | ||
!elfi_logo_text_nobg.png | ||
*.svg | ||
*.jpg | ||
*.jpeg | ||
|
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 |
---|---|---|
|
@@ -63,13 +63,16 @@ Get Started! | |
Ready to contribute? Here's how to set up `ELFI` for local development. | ||
|
||
1. Fork the `elfi` repo on GitHub. | ||
2. Clone your fork locally:: | ||
2. Clone your fork locally and add the base repository as a remote:: | ||
|
||
$ git clone [email protected]:your_name_here/elfi.git | ||
$ git clone [email protected]:your_github_handle_here/elfi.git | ||
$ cd elfi | ||
$ git remote add upstream [email protected]:elfi-dev/elfi.git | ||
|
||
3. Make sure you have `Python 3 <https://www.python.org/>`_ and | ||
`Anaconda Distribution <https://www.anaconda.com/>`_ installed on your | ||
machine. Check your conda and Python versions:: | ||
machine. Check your conda and Python versions. Currently supported Python versions | ||
are 3.6, 3.7, 3.8:: | ||
|
||
$ conda -V | ||
$ python -V | ||
|
@@ -106,9 +109,15 @@ Ready to contribute? Here's how to set up `ELFI` for local development. | |
|
||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
|
||
9. After committing your changes, you may sync with the base repository if there has been changes:: | ||
$ git fetch upstream | ||
$ git rebase upstream/dev | ||
|
||
10. Push the changes:: | ||
$ git push origin name-of-your-bugfix-or-feature | ||
|
||
9. Submit a pull request through the GitHub website. | ||
11. Submit a pull request through the GitHub website. | ||
|
||
Style Guidelines | ||
---------------- | ||
|
@@ -123,12 +132,12 @@ Pull Request Guidelines | |
Before you submit a pull request, check that it meets these guidelines: | ||
|
||
1. The pull request should include tests that will be run automatically using | ||
Travis-CI. | ||
Github Actions. | ||
2. If the pull request adds functionality, the docs should be updated. Put | ||
your new functionality into a function with a docstring, and add the | ||
feature to the list in README.rst. | ||
3. The pull request should work for Python 3.6 and later. Check | ||
https://travis-ci.org/elfi-dev/elfi/pull_requests | ||
feature to the list in README.md. | ||
3. The pull request should work for Python 3.6, or later. Check | ||
https://github.com/elfi-dev/elfi/actions/workflows/pytest.yml | ||
and make sure that the tests pass for all supported Python versions. | ||
|
||
Tips | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -20,12 +20,14 @@ | |
from elfi.model.elfi_model import * | ||
from elfi.model.extensions import ScipyLikeDistribution as Distribution | ||
from elfi.store import OutputPool, ArrayPool | ||
from elfi.testbench.testbench import Testbench, TestbenchMethod | ||
from elfi.visualization.visualization import nx_draw as draw | ||
from elfi.visualization.visualization import plot_params_vs_node | ||
from elfi.visualization.visualization import plot_predicted_summaries | ||
from elfi.methods.bo.gpy_regression import GPyRegression | ||
|
||
__author__ = 'ELFI authors' | ||
__email__ = '[email protected]' | ||
|
||
# make sure __version_ is on the last non-empty line (read by setup.py) | ||
__version__ = '0.8.0' | ||
__version__ = '0.8.1' |
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
Oops, something went wrong.