You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release v. 0.7.5
- Improved the appearance of figures produced by `plot_gp` and added the option
to draw true parameter indicators on the subplots using the optional input
`true_params`
- Modified DCC model by taking into account that subject can't infect herself
- Added ability to set minimizer constrains for BOLFI
- Enable bolfi.fit using only pre-generated initial evidence points
- Fixed a bug causing random seed number to be deterministic
- Updated requirements-dev.txt with pytest>=4.4
- Minor changes to documentation and refactoring
- Added `make test-notslow` alternative
Copy file name to clipboardexpand all lines: CONTRIBUTING.rst
+24-9
Original file line number
Diff line number
Diff line change
@@ -54,61 +54,76 @@ If you are proposing a feature:
54
54
* Remember that this is a volunteer-driven project, and that contributions
55
55
are welcome :)
56
56
57
+
57
58
Get Started!
58
59
------------
59
60
61
+
`ELFI` is a project with dozens of collaborators, so organization is key to making our contributions effective and avoid reword. Thus, in addition to the recommendations below we strongly recommend reading our `Wiki <https://github.com/elfi-dev/elfi/wiki>`_ to see what is the suggested git workflow procedure for your type of contribution.
62
+
60
63
Ready to contribute? Here's how to set up `ELFI` for local development.
3. Install your local copy and the development requirements into a conda environment::
70
+
3. Make sure you have `Python 3 <https://www.python.org/>`_ and
71
+
`Anaconda Distribution <https://www.anaconda.com/>`_ installed on your
72
+
machine. Check your conda and Python versions::
73
+
74
+
$ conda -V
75
+
$ python -V
76
+
77
+
4. Install your local copy and the development requirements into a conda
78
+
environment. You may need to replace "3.5" in the first line with the python
79
+
version printed in the previous step::
68
80
69
81
$ conda create -n elfi python=3.5 numpy
70
82
$ source activate elfi
71
83
$ cd elfi
72
84
$ make dev
73
85
74
-
4. Create a branch for local development::
86
+
5. Create a branch for local development::
75
87
76
88
$ git checkout -b name-of-your-bugfix-or-feature
77
89
78
90
Now you can make your changes locally.
79
-
80
-
5. Follow the `Style Guidelines`_
81
91
82
-
6. When you're done making changes, check that your changes pass flake8 and the tests::
92
+
6. Follow the `Style Guidelines`_
93
+
94
+
7. When you're done making changes, check that your changes pass flake8 and the tests::
83
95
84
96
$ make lint
85
97
$ make test
86
98
99
+
You may run `make test-notslow` instead of `make test` *as long as your proposed changes are unrelated to BOLFI*.
100
+
87
101
Also make sure that the docstrings of your code are formatted properly::
88
102
89
103
$ make docs
90
104
91
-
7. Commit your changes and push your branch to GitHub::
105
+
8. Commit your changes and push your branch to GitHub::
92
106
93
107
$ git add .
94
108
$ git commit -m "Your detailed description of your changes."
95
109
$ git push origin name-of-your-bugfix-or-feature
96
110
97
-
8. Submit a pull request through the GitHub website.
111
+
9. Submit a pull request through the GitHub website.
98
112
99
113
Style Guidelines
100
114
----------------
101
115
102
116
The Python code in ELFI mostly follows `PEP8 <http://pep8.org/>`_, which is considered the de-facto code style guide for Python. Lines should not exceed 100 characters.
103
-
117
+
104
118
Docstrings follow the `NumPy style <http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html>`_.
105
119
106
120
Pull Request Guidelines
107
121
-----------------------
108
122
109
123
Before you submit a pull request, check that it meets these guidelines:
110
124
111
-
1. The pull request should include tests that will be run automatically using Travis-CI.
125
+
1. The pull request should include tests that will be run automatically using
126
+
Travis-CI.
112
127
2. If the pull request adds functionality, the docs should be updated. Put
113
128
your new functionality into a function with a docstring, and add the
Copy file name to clipboardexpand all lines: docs/usage/tutorial.rst
+15-15
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
This tutorial is generated from a `Jupyter <http://jupyter.org/>`__
3
2
notebook that can be found
4
3
`here <https://github.com/elfi-dev/notebooks>`__.
@@ -95,8 +94,8 @@ scalars as they are first converted to vectors.
95
94
.. Important:: In order to guarantee a consistent state of pseudo-random number generation, the simulator must have `random_state` as a keyword argument for reading in a `numpy.RandomState` object.
96
95
97
96
Let’s now use this simulator to create toy observations. We will use
98
-
parameter values :math:`\theta_1=0.6, \theta_2=0.2` as in `Marin et al.
0 commit comments