elicito 0.3.1a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of elicito might be problematic. Click here for more details.
- elicito-0.3.1a1/LICENCE +201 -0
- elicito-0.3.1a1/PKG-INFO +225 -0
- elicito-0.3.1a1/README.md +165 -0
- elicito-0.3.1a1/pyproject.toml +330 -0
- elicito-0.3.1a1/src/elicito/__init__.py +7 -0
- elicito-0.3.1a1/src/elicito/operations.py +35 -0
- elicito-0.3.1a1/src/elicito/py.typed +0 -0
- elicito-0.3.1a1/tests/conftest.py +5 -0
- elicito-0.3.1a1/tests/integration/.gitkeep +0 -0
- elicito-0.3.1a1/tests/regression/.gitkeep +0 -0
- elicito-0.3.1a1/tests/test-data/.gitkeep +0 -0
- elicito-0.3.1a1/tests/unit/.gitkeep +0 -0
- elicito-0.3.1a1/tests/unit/test_operations.py +12 -0
elicito-0.3.1a1/LICENCE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
elicito-0.3.1a1/PKG-INFO
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: elicito
|
|
3
|
+
Version: 0.3.1a1
|
|
4
|
+
Summary: A Python package for learning prior distributions based on expert knowledge
|
|
5
|
+
Author-Email: Florence Bockting <florence.bockting@tu-dortmund.de>
|
|
6
|
+
License: placeholder
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Intended Audience :: Science/Research
|
|
9
|
+
Classifier: Natural Language :: English
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Project-URL: Homepage, https://elicito.readthedocs.io
|
|
21
|
+
Project-URL: Documentation, https://elicito.readthedocs.io
|
|
22
|
+
Project-URL: Changelog, https://elicito.readthedocs.io/en/stable/changelog
|
|
23
|
+
Project-URL: Repository, https://github.com/florence-bockting/elicito
|
|
24
|
+
Project-URL: Issues, https://github.com/florence-bockting/elicito/issues
|
|
25
|
+
Requires-Python: >=3.9
|
|
26
|
+
Provides-Extra: plots
|
|
27
|
+
Requires-Dist: matplotlib>=3.7.1; extra == "plots"
|
|
28
|
+
Provides-Extra: full
|
|
29
|
+
Requires-Dist: elicito[plots]; extra == "full"
|
|
30
|
+
Provides-Extra: locked
|
|
31
|
+
Provides-Extra: plots-locked
|
|
32
|
+
Requires-Dist: contourpy==1.3.0; extra == "plots-locked"
|
|
33
|
+
Requires-Dist: cycler==0.12.1; extra == "plots-locked"
|
|
34
|
+
Requires-Dist: fonttools==4.56.0; extra == "plots-locked"
|
|
35
|
+
Requires-Dist: importlib-resources==6.5.2; python_version < "3.10" and extra == "plots-locked"
|
|
36
|
+
Requires-Dist: kiwisolver==1.4.7; extra == "plots-locked"
|
|
37
|
+
Requires-Dist: matplotlib==3.9.4; extra == "plots-locked"
|
|
38
|
+
Requires-Dist: numpy==2.0.2; extra == "plots-locked"
|
|
39
|
+
Requires-Dist: packaging==24.2; extra == "plots-locked"
|
|
40
|
+
Requires-Dist: pillow==11.1.0; extra == "plots-locked"
|
|
41
|
+
Requires-Dist: pyparsing==3.2.1; extra == "plots-locked"
|
|
42
|
+
Requires-Dist: python-dateutil==2.9.0.post0; extra == "plots-locked"
|
|
43
|
+
Requires-Dist: six==1.17.0; extra == "plots-locked"
|
|
44
|
+
Requires-Dist: zipp==3.21.0; python_version < "3.10" and extra == "plots-locked"
|
|
45
|
+
Provides-Extra: full-locked
|
|
46
|
+
Requires-Dist: contourpy==1.3.0; extra == "full-locked"
|
|
47
|
+
Requires-Dist: cycler==0.12.1; extra == "full-locked"
|
|
48
|
+
Requires-Dist: fonttools==4.56.0; extra == "full-locked"
|
|
49
|
+
Requires-Dist: importlib-resources==6.5.2; python_version < "3.10" and extra == "full-locked"
|
|
50
|
+
Requires-Dist: kiwisolver==1.4.7; extra == "full-locked"
|
|
51
|
+
Requires-Dist: matplotlib==3.9.4; extra == "full-locked"
|
|
52
|
+
Requires-Dist: numpy==2.0.2; extra == "full-locked"
|
|
53
|
+
Requires-Dist: packaging==24.2; extra == "full-locked"
|
|
54
|
+
Requires-Dist: pillow==11.1.0; extra == "full-locked"
|
|
55
|
+
Requires-Dist: pyparsing==3.2.1; extra == "full-locked"
|
|
56
|
+
Requires-Dist: python-dateutil==2.9.0.post0; extra == "full-locked"
|
|
57
|
+
Requires-Dist: six==1.17.0; extra == "full-locked"
|
|
58
|
+
Requires-Dist: zipp==3.21.0; python_version < "3.10" and extra == "full-locked"
|
|
59
|
+
Description-Content-Type: text/markdown
|
|
60
|
+
|
|
61
|
+
<!--- --8<-- [start:description] -->
|
|
62
|
+
# Expert prior elicitation method
|
|
63
|
+
|
|
64
|
+
A Python package for learning prior distributions based on expert knowledge
|
|
65
|
+
|
|
66
|
+
**Key info :**
|
|
67
|
+
[](https://elicito.readthedocs.io)
|
|
68
|
+
[](https://github.com/florence-bockting/elicito/blob/main/pyproject.toml)
|
|
69
|
+
[](https://github.com/florence-bockting/elicito/blob/main/LICENCE)
|
|
70
|
+
|
|
71
|
+
**PyPI :**
|
|
72
|
+
[](https://pypi.org/project/elicito/)
|
|
73
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/install-pypi.yaml)
|
|
74
|
+
|
|
75
|
+
**Conda :**
|
|
76
|
+
[](https://anaconda.org/conda-forge/elicito)
|
|
77
|
+
[](https://anaconda.org/conda-forge/elicito)
|
|
78
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/install-conda.yaml)
|
|
79
|
+
|
|
80
|
+
**Tests :**
|
|
81
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/ci.yaml)
|
|
82
|
+
[](https://codecov.io/gh/florence-bockting/elicito)
|
|
83
|
+
|
|
84
|
+
**Other info :**
|
|
85
|
+
[](https://github.com/florence-bockting/elicito/commits/main)
|
|
86
|
+
[](https://github.com/florence-bockting/elicito/graphs/contributors)
|
|
87
|
+
## Status
|
|
88
|
+
|
|
89
|
+
<!---
|
|
90
|
+
|
|
91
|
+
We recommend having a status line in your repo
|
|
92
|
+
to tell anyone who stumbles on your repository where you're up to.
|
|
93
|
+
Some suggested options:
|
|
94
|
+
|
|
95
|
+
- prototype: the project is just starting up and the code is all prototype
|
|
96
|
+
- development: the project is actively being worked on
|
|
97
|
+
- finished: the project has achieved what it wanted
|
|
98
|
+
and is no longer being worked on, we won't reply to any issues
|
|
99
|
+
- dormant: the project is no longer worked on
|
|
100
|
+
but we might come back to it,
|
|
101
|
+
if you have questions, feel free to raise an issue
|
|
102
|
+
- abandoned: this project is no longer worked on
|
|
103
|
+
and we won't reply to any issues
|
|
104
|
+
-->
|
|
105
|
+
|
|
106
|
+
- prototype: the project is just starting up and the code is all prototype
|
|
107
|
+
|
|
108
|
+
<!--- --8<-- [end:description] -->
|
|
109
|
+
|
|
110
|
+
Full documentation can be found at:
|
|
111
|
+
[elicito.readthedocs.io](https://elicito.readthedocs.io/en/latest/).
|
|
112
|
+
We recommend reading the docs there because the internal documentation links
|
|
113
|
+
don't render correctly on GitHub's viewer.
|
|
114
|
+
|
|
115
|
+
## Installation
|
|
116
|
+
|
|
117
|
+
<!--- --8<-- [start:installation] -->
|
|
118
|
+
### As an application
|
|
119
|
+
|
|
120
|
+
If you want to use Expert prior elicitation method as an application,
|
|
121
|
+
then we recommend using the 'locked' version of the package.
|
|
122
|
+
This version pins the version of all dependencies too,
|
|
123
|
+
which reduces the chance of installation issues
|
|
124
|
+
because of breaking updates to dependencies.
|
|
125
|
+
|
|
126
|
+
The locked version of Expert prior elicitation method can be installed with
|
|
127
|
+
|
|
128
|
+
=== "mamba"
|
|
129
|
+
```sh
|
|
130
|
+
mamba install -c conda-forge elicito-locked
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
=== "conda"
|
|
134
|
+
```sh
|
|
135
|
+
conda install -c conda-forge elicito-locked
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
=== "pip"
|
|
139
|
+
```sh
|
|
140
|
+
pip install 'elicito[locked]'
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### As a library
|
|
144
|
+
|
|
145
|
+
If you want to use Expert prior elicitation method as a library,
|
|
146
|
+
for example you want to use it
|
|
147
|
+
as a dependency in another package/application that you're building,
|
|
148
|
+
then we recommend installing the package with the commands below.
|
|
149
|
+
This method provides the loosest pins possible of all dependencies.
|
|
150
|
+
This gives you, the package/application developer,
|
|
151
|
+
as much freedom as possible to set the versions of different packages.
|
|
152
|
+
However, the tradeoff with this freedom is that you may install
|
|
153
|
+
incompatible versions of Expert prior elicitation method's dependencies
|
|
154
|
+
(we cannot test all combinations of dependencies,
|
|
155
|
+
particularly ones which haven't been released yet!).
|
|
156
|
+
Hence, you may run into installation issues.
|
|
157
|
+
If you believe these are because of a problem in Expert prior elicitation method,
|
|
158
|
+
please [raise an issue](https://github.com/florence-bockting/elicito/issues).
|
|
159
|
+
|
|
160
|
+
The (non-locked) version of Expert prior elicitation method can be installed with
|
|
161
|
+
|
|
162
|
+
=== "mamba"
|
|
163
|
+
```sh
|
|
164
|
+
mamba install -c conda-forge elicito
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
=== "conda"
|
|
168
|
+
```sh
|
|
169
|
+
conda install -c conda-forge elicito
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
=== "pip"
|
|
173
|
+
```sh
|
|
174
|
+
pip install elicito
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Additional dependencies can be installed using
|
|
178
|
+
|
|
179
|
+
=== "mamba"
|
|
180
|
+
If you are installing with mamba, we recommend
|
|
181
|
+
installing the extras by hand because there is no stable
|
|
182
|
+
solution yet (see [conda issue #7502](https://github.com/conda/conda/issues/7502))
|
|
183
|
+
|
|
184
|
+
=== "conda"
|
|
185
|
+
If you are installing with conda, we recommend
|
|
186
|
+
installing the extras by hand because there is no stable
|
|
187
|
+
solution yet (see [conda issue #7502](https://github.com/conda/conda/issues/7502))
|
|
188
|
+
|
|
189
|
+
=== "pip"
|
|
190
|
+
```sh
|
|
191
|
+
# To add plotting dependencies
|
|
192
|
+
pip install 'elicito[plots]'
|
|
193
|
+
|
|
194
|
+
# To add all optional dependencies
|
|
195
|
+
pip install 'elicito[full]'
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### For developers
|
|
199
|
+
|
|
200
|
+
For development, we rely on [uv](https://docs.astral.sh/uv/)
|
|
201
|
+
for all our dependency management.
|
|
202
|
+
To get started, you will need to make sure that uv is installed
|
|
203
|
+
([instructions here](https://docs.astral.sh/uv/getting-started/installation/)
|
|
204
|
+
(we found that the self-managed install was best,
|
|
205
|
+
particularly for upgrading uv later).
|
|
206
|
+
|
|
207
|
+
For all of our work, we use our `Makefile`.
|
|
208
|
+
You can read the instructions out and run the commands by hand if you wish,
|
|
209
|
+
but we generally discourage this because it can be error prone.
|
|
210
|
+
In order to create your environment, run `make virtual-environment`.
|
|
211
|
+
|
|
212
|
+
If there are any issues, the messages from the `Makefile` should guide you through.
|
|
213
|
+
If not, please raise an issue in the
|
|
214
|
+
[issue tracker](https://github.com/florence-bockting/elicito/issues).
|
|
215
|
+
|
|
216
|
+
For the rest of our developer docs, please see [development][development].
|
|
217
|
+
|
|
218
|
+
<!--- --8<-- [end:installation] -->
|
|
219
|
+
|
|
220
|
+
## Original template
|
|
221
|
+
|
|
222
|
+
This project was generated from this template:
|
|
223
|
+
[copier core python repository](https://gitlab.com/openscm/copier-core-python-repository).
|
|
224
|
+
[copier](https://copier.readthedocs.io/en/stable/) is used to manage and
|
|
225
|
+
distribute this template.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<!--- --8<-- [start:description] -->
|
|
2
|
+
# Expert prior elicitation method
|
|
3
|
+
|
|
4
|
+
A Python package for learning prior distributions based on expert knowledge
|
|
5
|
+
|
|
6
|
+
**Key info :**
|
|
7
|
+
[](https://elicito.readthedocs.io)
|
|
8
|
+
[](https://github.com/florence-bockting/elicito/blob/main/pyproject.toml)
|
|
9
|
+
[](https://github.com/florence-bockting/elicito/blob/main/LICENCE)
|
|
10
|
+
|
|
11
|
+
**PyPI :**
|
|
12
|
+
[](https://pypi.org/project/elicito/)
|
|
13
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/install-pypi.yaml)
|
|
14
|
+
|
|
15
|
+
**Conda :**
|
|
16
|
+
[](https://anaconda.org/conda-forge/elicito)
|
|
17
|
+
[](https://anaconda.org/conda-forge/elicito)
|
|
18
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/install-conda.yaml)
|
|
19
|
+
|
|
20
|
+
**Tests :**
|
|
21
|
+
[](https://github.com/florence-bockting/elicito/actions/workflows/ci.yaml)
|
|
22
|
+
[](https://codecov.io/gh/florence-bockting/elicito)
|
|
23
|
+
|
|
24
|
+
**Other info :**
|
|
25
|
+
[](https://github.com/florence-bockting/elicito/commits/main)
|
|
26
|
+
[](https://github.com/florence-bockting/elicito/graphs/contributors)
|
|
27
|
+
## Status
|
|
28
|
+
|
|
29
|
+
<!---
|
|
30
|
+
|
|
31
|
+
We recommend having a status line in your repo
|
|
32
|
+
to tell anyone who stumbles on your repository where you're up to.
|
|
33
|
+
Some suggested options:
|
|
34
|
+
|
|
35
|
+
- prototype: the project is just starting up and the code is all prototype
|
|
36
|
+
- development: the project is actively being worked on
|
|
37
|
+
- finished: the project has achieved what it wanted
|
|
38
|
+
and is no longer being worked on, we won't reply to any issues
|
|
39
|
+
- dormant: the project is no longer worked on
|
|
40
|
+
but we might come back to it,
|
|
41
|
+
if you have questions, feel free to raise an issue
|
|
42
|
+
- abandoned: this project is no longer worked on
|
|
43
|
+
and we won't reply to any issues
|
|
44
|
+
-->
|
|
45
|
+
|
|
46
|
+
- prototype: the project is just starting up and the code is all prototype
|
|
47
|
+
|
|
48
|
+
<!--- --8<-- [end:description] -->
|
|
49
|
+
|
|
50
|
+
Full documentation can be found at:
|
|
51
|
+
[elicito.readthedocs.io](https://elicito.readthedocs.io/en/latest/).
|
|
52
|
+
We recommend reading the docs there because the internal documentation links
|
|
53
|
+
don't render correctly on GitHub's viewer.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
<!--- --8<-- [start:installation] -->
|
|
58
|
+
### As an application
|
|
59
|
+
|
|
60
|
+
If you want to use Expert prior elicitation method as an application,
|
|
61
|
+
then we recommend using the 'locked' version of the package.
|
|
62
|
+
This version pins the version of all dependencies too,
|
|
63
|
+
which reduces the chance of installation issues
|
|
64
|
+
because of breaking updates to dependencies.
|
|
65
|
+
|
|
66
|
+
The locked version of Expert prior elicitation method can be installed with
|
|
67
|
+
|
|
68
|
+
=== "mamba"
|
|
69
|
+
```sh
|
|
70
|
+
mamba install -c conda-forge elicito-locked
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
=== "conda"
|
|
74
|
+
```sh
|
|
75
|
+
conda install -c conda-forge elicito-locked
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
=== "pip"
|
|
79
|
+
```sh
|
|
80
|
+
pip install 'elicito[locked]'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### As a library
|
|
84
|
+
|
|
85
|
+
If you want to use Expert prior elicitation method as a library,
|
|
86
|
+
for example you want to use it
|
|
87
|
+
as a dependency in another package/application that you're building,
|
|
88
|
+
then we recommend installing the package with the commands below.
|
|
89
|
+
This method provides the loosest pins possible of all dependencies.
|
|
90
|
+
This gives you, the package/application developer,
|
|
91
|
+
as much freedom as possible to set the versions of different packages.
|
|
92
|
+
However, the tradeoff with this freedom is that you may install
|
|
93
|
+
incompatible versions of Expert prior elicitation method's dependencies
|
|
94
|
+
(we cannot test all combinations of dependencies,
|
|
95
|
+
particularly ones which haven't been released yet!).
|
|
96
|
+
Hence, you may run into installation issues.
|
|
97
|
+
If you believe these are because of a problem in Expert prior elicitation method,
|
|
98
|
+
please [raise an issue](https://github.com/florence-bockting/elicito/issues).
|
|
99
|
+
|
|
100
|
+
The (non-locked) version of Expert prior elicitation method can be installed with
|
|
101
|
+
|
|
102
|
+
=== "mamba"
|
|
103
|
+
```sh
|
|
104
|
+
mamba install -c conda-forge elicito
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
=== "conda"
|
|
108
|
+
```sh
|
|
109
|
+
conda install -c conda-forge elicito
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
=== "pip"
|
|
113
|
+
```sh
|
|
114
|
+
pip install elicito
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Additional dependencies can be installed using
|
|
118
|
+
|
|
119
|
+
=== "mamba"
|
|
120
|
+
If you are installing with mamba, we recommend
|
|
121
|
+
installing the extras by hand because there is no stable
|
|
122
|
+
solution yet (see [conda issue #7502](https://github.com/conda/conda/issues/7502))
|
|
123
|
+
|
|
124
|
+
=== "conda"
|
|
125
|
+
If you are installing with conda, we recommend
|
|
126
|
+
installing the extras by hand because there is no stable
|
|
127
|
+
solution yet (see [conda issue #7502](https://github.com/conda/conda/issues/7502))
|
|
128
|
+
|
|
129
|
+
=== "pip"
|
|
130
|
+
```sh
|
|
131
|
+
# To add plotting dependencies
|
|
132
|
+
pip install 'elicito[plots]'
|
|
133
|
+
|
|
134
|
+
# To add all optional dependencies
|
|
135
|
+
pip install 'elicito[full]'
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### For developers
|
|
139
|
+
|
|
140
|
+
For development, we rely on [uv](https://docs.astral.sh/uv/)
|
|
141
|
+
for all our dependency management.
|
|
142
|
+
To get started, you will need to make sure that uv is installed
|
|
143
|
+
([instructions here](https://docs.astral.sh/uv/getting-started/installation/)
|
|
144
|
+
(we found that the self-managed install was best,
|
|
145
|
+
particularly for upgrading uv later).
|
|
146
|
+
|
|
147
|
+
For all of our work, we use our `Makefile`.
|
|
148
|
+
You can read the instructions out and run the commands by hand if you wish,
|
|
149
|
+
but we generally discourage this because it can be error prone.
|
|
150
|
+
In order to create your environment, run `make virtual-environment`.
|
|
151
|
+
|
|
152
|
+
If there are any issues, the messages from the `Makefile` should guide you through.
|
|
153
|
+
If not, please raise an issue in the
|
|
154
|
+
[issue tracker](https://github.com/florence-bockting/elicito/issues).
|
|
155
|
+
|
|
156
|
+
For the rest of our developer docs, please see [development][development].
|
|
157
|
+
|
|
158
|
+
<!--- --8<-- [end:installation] -->
|
|
159
|
+
|
|
160
|
+
## Original template
|
|
161
|
+
|
|
162
|
+
This project was generated from this template:
|
|
163
|
+
[copier core python repository](https://gitlab.com/openscm/copier-core-python-repository).
|
|
164
|
+
[copier](https://copier.readthedocs.io/en/stable/) is used to manage and
|
|
165
|
+
distribute this template.
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "elicito"
|
|
3
|
+
version = "0.3.1a1"
|
|
4
|
+
description = "A Python package for learning prior distributions based on expert knowledge"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Florence Bockting", email = "florence.bockting@tu-dortmund.de" },
|
|
7
|
+
]
|
|
8
|
+
requires-python = ">=3.9"
|
|
9
|
+
dependencies = []
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Intended Audience :: Science/Research",
|
|
14
|
+
"Natural Language :: English",
|
|
15
|
+
"Operating System :: OS Independent",
|
|
16
|
+
"Programming Language :: Python",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
19
|
+
"Programming Language :: Python :: 3.9",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Typing :: Typed",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.license]
|
|
28
|
+
text = "placeholder"
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://elicito.readthedocs.io"
|
|
32
|
+
Documentation = "https://elicito.readthedocs.io"
|
|
33
|
+
Changelog = "https://elicito.readthedocs.io/en/stable/changelog"
|
|
34
|
+
Repository = "https://github.com/florence-bockting/elicito"
|
|
35
|
+
Issues = "https://github.com/florence-bockting/elicito/issues"
|
|
36
|
+
|
|
37
|
+
[project.optional-dependencies]
|
|
38
|
+
plots = [
|
|
39
|
+
"matplotlib>=3.7.1",
|
|
40
|
+
]
|
|
41
|
+
full = [
|
|
42
|
+
"elicito[plots]",
|
|
43
|
+
]
|
|
44
|
+
locked = []
|
|
45
|
+
plots-locked = [
|
|
46
|
+
"contourpy==1.3.0",
|
|
47
|
+
"cycler==0.12.1",
|
|
48
|
+
"fonttools==4.56.0",
|
|
49
|
+
"importlib-resources==6.5.2 ; python_version < \"3.10\"",
|
|
50
|
+
"kiwisolver==1.4.7",
|
|
51
|
+
"matplotlib==3.9.4",
|
|
52
|
+
"numpy==2.0.2",
|
|
53
|
+
"packaging==24.2",
|
|
54
|
+
"pillow==11.1.0",
|
|
55
|
+
"pyparsing==3.2.1",
|
|
56
|
+
"python-dateutil==2.9.0.post0",
|
|
57
|
+
"six==1.17.0",
|
|
58
|
+
"zipp==3.21.0 ; python_version < \"3.10\"",
|
|
59
|
+
]
|
|
60
|
+
full-locked = [
|
|
61
|
+
"contourpy==1.3.0",
|
|
62
|
+
"cycler==0.12.1",
|
|
63
|
+
"fonttools==4.56.0",
|
|
64
|
+
"importlib-resources==6.5.2 ; python_version < \"3.10\"",
|
|
65
|
+
"kiwisolver==1.4.7",
|
|
66
|
+
"matplotlib==3.9.4",
|
|
67
|
+
"numpy==2.0.2",
|
|
68
|
+
"packaging==24.2",
|
|
69
|
+
"pillow==11.1.0",
|
|
70
|
+
"pyparsing==3.2.1",
|
|
71
|
+
"python-dateutil==2.9.0.post0",
|
|
72
|
+
"six==1.17.0",
|
|
73
|
+
"zipp==3.21.0 ; python_version < \"3.10\"",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[dependency-groups]
|
|
77
|
+
dev = [
|
|
78
|
+
"liccheck==0.9.2",
|
|
79
|
+
"mypy==1.14.0",
|
|
80
|
+
"pip==24.3.1",
|
|
81
|
+
"pre-commit==4.0.1",
|
|
82
|
+
"setuptools==75.6.0",
|
|
83
|
+
"towncrier==24.8.0",
|
|
84
|
+
"cfgv==3.4.0",
|
|
85
|
+
"click==8.1.8",
|
|
86
|
+
"colorama==0.4.6 ; sys_platform == 'win32'",
|
|
87
|
+
"distlib==0.3.9",
|
|
88
|
+
"filelock==3.16.1",
|
|
89
|
+
"identify==2.6.5",
|
|
90
|
+
"jinja2==3.1.5",
|
|
91
|
+
"markupsafe==3.0.2",
|
|
92
|
+
"mypy-extensions==1.0.0",
|
|
93
|
+
"nodeenv==1.9.1",
|
|
94
|
+
"platformdirs==4.3.6",
|
|
95
|
+
"pyyaml==6.0.2",
|
|
96
|
+
"semantic-version==2.10.0",
|
|
97
|
+
"toml==0.10.2",
|
|
98
|
+
"typing-extensions==4.12.2",
|
|
99
|
+
"virtualenv==20.28.1",
|
|
100
|
+
]
|
|
101
|
+
docs = [
|
|
102
|
+
"attrs==24.3.0",
|
|
103
|
+
"mkdocs-autorefs==1.2.0",
|
|
104
|
+
"mkdocs-gen-files==0.5.0",
|
|
105
|
+
"mkdocs-literate-nav==0.6.1",
|
|
106
|
+
"mkdocs-material==9.5.49",
|
|
107
|
+
"mkdocs-section-index==0.3.9",
|
|
108
|
+
"mkdocs==1.6.1",
|
|
109
|
+
"mkdocstrings-python-xref==1.6.2",
|
|
110
|
+
"mkdocstrings-python==1.13.0",
|
|
111
|
+
"pymdown-extensions==10.13",
|
|
112
|
+
"ruff==0.8.6",
|
|
113
|
+
"babel==2.16.0",
|
|
114
|
+
"certifi==2024.12.14",
|
|
115
|
+
"charset-normalizer==3.4.1",
|
|
116
|
+
"click==8.1.8",
|
|
117
|
+
"colorama==0.4.6",
|
|
118
|
+
"ghp-import==2.1.0",
|
|
119
|
+
"griffe==1.5.4",
|
|
120
|
+
"idna==3.10",
|
|
121
|
+
"jinja2==3.1.5",
|
|
122
|
+
"markdown==3.7",
|
|
123
|
+
"markupsafe==3.0.2",
|
|
124
|
+
"mergedeep==1.3.4",
|
|
125
|
+
"mkdocs-get-deps==0.2.0",
|
|
126
|
+
"mkdocs-material-extensions==1.3.1",
|
|
127
|
+
"mkdocstrings==0.27.0",
|
|
128
|
+
"packaging==24.2",
|
|
129
|
+
"paginate==0.5.7",
|
|
130
|
+
"pathspec==0.12.1",
|
|
131
|
+
"platformdirs==4.3.6",
|
|
132
|
+
"pygments==2.19.1",
|
|
133
|
+
"python-dateutil==2.9.0.post0",
|
|
134
|
+
"pyyaml-env-tag==0.1",
|
|
135
|
+
"pyyaml==6.0.2",
|
|
136
|
+
"regex==2024.11.6",
|
|
137
|
+
"requests==2.32.3",
|
|
138
|
+
"six==1.17.0",
|
|
139
|
+
"urllib3==2.3.0",
|
|
140
|
+
"watchdog==6.0.0",
|
|
141
|
+
]
|
|
142
|
+
tests-min = [
|
|
143
|
+
"pytest==8.3.4",
|
|
144
|
+
"colorama==0.4.6 ; sys_platform == 'win32'",
|
|
145
|
+
"iniconfig==2.0.0",
|
|
146
|
+
"packaging==24.2",
|
|
147
|
+
"pluggy==1.5.0",
|
|
148
|
+
]
|
|
149
|
+
tests-full = [
|
|
150
|
+
"pytest-cov==6.0.0",
|
|
151
|
+
"colorama==0.4.6 ; sys_platform == 'win32'",
|
|
152
|
+
"coverage==7.6.10",
|
|
153
|
+
"iniconfig==2.0.0",
|
|
154
|
+
"packaging==24.2",
|
|
155
|
+
"pluggy==1.5.0",
|
|
156
|
+
"pytest==8.3.4",
|
|
157
|
+
]
|
|
158
|
+
tests = [
|
|
159
|
+
{ include-group = "tests-min" },
|
|
160
|
+
{ include-group = "tests-full" },
|
|
161
|
+
]
|
|
162
|
+
all-dev = [
|
|
163
|
+
{ include-group = "dev" },
|
|
164
|
+
{ include-group = "docs" },
|
|
165
|
+
{ include-group = "tests" },
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
[build-system]
|
|
169
|
+
requires = [
|
|
170
|
+
"pdm-backend",
|
|
171
|
+
"pdm-build-locked",
|
|
172
|
+
]
|
|
173
|
+
build-backend = "pdm.backend"
|
|
174
|
+
|
|
175
|
+
[tool.pdm.build]
|
|
176
|
+
locked = true
|
|
177
|
+
includes = [
|
|
178
|
+
"src/elicito",
|
|
179
|
+
"LICENCE",
|
|
180
|
+
]
|
|
181
|
+
|
|
182
|
+
[tool.coverage.run]
|
|
183
|
+
source = [
|
|
184
|
+
"src",
|
|
185
|
+
]
|
|
186
|
+
branch = true
|
|
187
|
+
|
|
188
|
+
[tool.coverage.report]
|
|
189
|
+
fail_under = 90
|
|
190
|
+
skip_empty = true
|
|
191
|
+
show_missing = true
|
|
192
|
+
exclude_also = [
|
|
193
|
+
"if TYPE_CHECKING",
|
|
194
|
+
"@overload",
|
|
195
|
+
"\\.\\.\\.",
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[tool.mypy]
|
|
199
|
+
strict = true
|
|
200
|
+
disallow_any_unimported = true
|
|
201
|
+
show_error_codes = true
|
|
202
|
+
show_error_context = true
|
|
203
|
+
warn_unreachable = true
|
|
204
|
+
follow_imports = "normal"
|
|
205
|
+
|
|
206
|
+
[tool.pytest.ini_options]
|
|
207
|
+
addopts = [
|
|
208
|
+
"--import-mode=importlib",
|
|
209
|
+
]
|
|
210
|
+
|
|
211
|
+
[tool.ruff]
|
|
212
|
+
src = [
|
|
213
|
+
"src",
|
|
214
|
+
]
|
|
215
|
+
target-version = "py39"
|
|
216
|
+
line-length = 88
|
|
217
|
+
|
|
218
|
+
[tool.ruff.lint]
|
|
219
|
+
select = [
|
|
220
|
+
"E",
|
|
221
|
+
"W",
|
|
222
|
+
"F",
|
|
223
|
+
"I",
|
|
224
|
+
"D",
|
|
225
|
+
"PL",
|
|
226
|
+
"TRY",
|
|
227
|
+
"NPY",
|
|
228
|
+
"RUF",
|
|
229
|
+
"UP",
|
|
230
|
+
"S",
|
|
231
|
+
]
|
|
232
|
+
unfixable = [
|
|
233
|
+
"PD002",
|
|
234
|
+
]
|
|
235
|
+
ignore = [
|
|
236
|
+
"D200",
|
|
237
|
+
"D400",
|
|
238
|
+
"UP007",
|
|
239
|
+
]
|
|
240
|
+
|
|
241
|
+
[tool.ruff.lint.per-file-ignores]
|
|
242
|
+
"test*.py" = [
|
|
243
|
+
"D",
|
|
244
|
+
"S101",
|
|
245
|
+
"PLR2004",
|
|
246
|
+
]
|
|
247
|
+
"docs/*" = [
|
|
248
|
+
"D100",
|
|
249
|
+
"E402",
|
|
250
|
+
"S101",
|
|
251
|
+
]
|
|
252
|
+
"scripts/*" = [
|
|
253
|
+
"S101",
|
|
254
|
+
]
|
|
255
|
+
"stubs/*" = [
|
|
256
|
+
"PLR0913",
|
|
257
|
+
]
|
|
258
|
+
|
|
259
|
+
[tool.ruff.lint.isort]
|
|
260
|
+
known-first-party = [
|
|
261
|
+
"src",
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
[tool.ruff.lint.pydocstyle]
|
|
265
|
+
convention = "numpy"
|
|
266
|
+
|
|
267
|
+
[tool.ruff.format]
|
|
268
|
+
docstring-code-format = true
|
|
269
|
+
|
|
270
|
+
[tool.towncrier]
|
|
271
|
+
package = "elicito"
|
|
272
|
+
package_dir = "src"
|
|
273
|
+
filename = "docs/changelog.md"
|
|
274
|
+
directory = "changelog/"
|
|
275
|
+
title_format = "## Expert prior elicitation method {version} ({project_date})"
|
|
276
|
+
underlines = [
|
|
277
|
+
"",
|
|
278
|
+
"",
|
|
279
|
+
"",
|
|
280
|
+
]
|
|
281
|
+
issue_format = "[#{issue}](https://github.com/florence-bockting/elicito/pull/{issue})"
|
|
282
|
+
type = [
|
|
283
|
+
{ directory = "breaking", name = "⚠️ Breaking Changes", showcontent = true },
|
|
284
|
+
{ directory = "deprecation", name = "🗑️ Deprecations", showcontent = true },
|
|
285
|
+
{ directory = "feature", name = "🆕 Features", showcontent = true },
|
|
286
|
+
{ directory = "improvement", name = "🎉 Improvements", showcontent = true },
|
|
287
|
+
{ directory = "fix", name = "🐛 Bug Fixes", showcontent = true },
|
|
288
|
+
{ directory = "docs", name = "📚 Improved Documentation", showcontent = true },
|
|
289
|
+
{ directory = "trivial", name = "🔧 Trivial/Internal Changes", showcontent = false },
|
|
290
|
+
]
|
|
291
|
+
|
|
292
|
+
[tool.liccheck]
|
|
293
|
+
authorized_licenses = [
|
|
294
|
+
"bsd",
|
|
295
|
+
"bsd license",
|
|
296
|
+
"BSD 3-Clause",
|
|
297
|
+
"CC0",
|
|
298
|
+
"apache",
|
|
299
|
+
"apache 2.0",
|
|
300
|
+
"apache software",
|
|
301
|
+
"apache software license",
|
|
302
|
+
"Apache License, Version 2.0",
|
|
303
|
+
"CMU License (MIT-CMU)",
|
|
304
|
+
"Historical Permission Notice and Disclaimer (HPND)",
|
|
305
|
+
"isc",
|
|
306
|
+
"isc license",
|
|
307
|
+
"isc license (iscl)",
|
|
308
|
+
"gnu lgpl",
|
|
309
|
+
"lgpl with exceptions or zpl",
|
|
310
|
+
"LGPLv2+",
|
|
311
|
+
"GNU Lesser General Public License v2 (LGPLv2)",
|
|
312
|
+
"GNU Lesser General Public License v2 or later (LGPLv2+)",
|
|
313
|
+
"mit",
|
|
314
|
+
"mit license",
|
|
315
|
+
"Mozilla Public License 2.0 (MPL 2.0)",
|
|
316
|
+
"python software foundation",
|
|
317
|
+
"python software foundation license",
|
|
318
|
+
"The Unlicense (Unlicense)",
|
|
319
|
+
"zpl 2.1",
|
|
320
|
+
]
|
|
321
|
+
unauthorized_licenses = [
|
|
322
|
+
"agpl",
|
|
323
|
+
"gnu agpl",
|
|
324
|
+
"gpl v3",
|
|
325
|
+
"gplv3",
|
|
326
|
+
"gpl v2",
|
|
327
|
+
"gplv2",
|
|
328
|
+
"gpl v1",
|
|
329
|
+
"gplv1",
|
|
330
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Operations
|
|
3
|
+
|
|
4
|
+
This module is just there to help with doc building etc. on project creation.
|
|
5
|
+
You will probably delete it early in the project.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def add_two(a: float, b: float) -> float:
|
|
12
|
+
"""
|
|
13
|
+
Add two numbers
|
|
14
|
+
|
|
15
|
+
Parameters
|
|
16
|
+
----------
|
|
17
|
+
a
|
|
18
|
+
First number
|
|
19
|
+
|
|
20
|
+
b
|
|
21
|
+
Second number
|
|
22
|
+
|
|
23
|
+
Returns
|
|
24
|
+
-------
|
|
25
|
+
:
|
|
26
|
+
Sum of the numbers
|
|
27
|
+
|
|
28
|
+
Examples
|
|
29
|
+
--------
|
|
30
|
+
>>> add_two(1, 3)
|
|
31
|
+
4
|
|
32
|
+
>>> add_two(1, -3)
|
|
33
|
+
-2
|
|
34
|
+
"""
|
|
35
|
+
return a + b
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|