Implements the models presented in Fumagalli et al. (2020)
Project description
Installation
Install the latest release from PyPi:
$ pip install Fumagalli-Motta-Tarantino-2020
Or alternatively, install the package directly from source:
$ pip install git+https://github.com/manuelbieri/Fumagalli_2020.git
Basic Usage
import Fumagalli_Motta_Tarantino_2020.Models as Model
# initialize the model (here you can adjust the parameters of the model)
model: Model.OptimalMergerPolicy = Model.OptimalMergerPolicy()
# print a summary of the outcome
print(model.summary())
A tutorial is included with the notebook tutorial.ipynb.
Find the latest documentation on manuelbieri.ch/fumagalli_2020.
Dependencies
These packages include all the needed imports for the functionality of this package.
Package | Version | Annotation |
---|---|---|
scipy | 1.8.1 | Always |
numpy | 1.22.4 | Always |
matplotlib | 3.5.2 | Always |
black | 22.3.0 | For consistent code formatting |
jupyter | 1.0.0 | For the demonstration in jupyter Notebooks |
IPython | 8.3.0 | For the demonstration in jupyter Notebooks |
pdoc | 12.0.0 | To generate the documentation from scratch |
Install the dependencies with the following command (Note: Make sure you are operating in the same directory, where the requirements.txt
is located.):
$ pip install -r requirements.txt
Tests
Run the unittests shipped in Fumagalli_Motta_Tarantino_2020.tests with the following command (pay attention to the current working directory):
$ python -m unittest discover Fumagalli_Motta_Tarantino_2020/tests
For explanations about the tests, have a look at TestCases.md . See codecov.io for a detailed report about the test coverage.
Generate Documentation
Generate the documentation with the following command:
$ pdoc -o docs Fumagalli_Motta_Tarantino_2020 --docformat numpy --math
or run the shell-script docs/build.sh
in the terminal.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Fumagalli_Motta_Tarantino_2020-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f3492b4a75fe2e486ab4abc72218b72aef0ef2c2165bbfd947c480f6bcf7ce6 |
|
MD5 | 58111370fc339045878a641d7c04d6ca |
|
BLAKE2b-256 | f3fbe5fb35d2f4f2e0fdb0b75d536821a3f4a741b866e88d541045d0b57fbd4a |
Hashes for Fumagalli_Motta_Tarantino_2020-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f67eb50e38f03baffbc83bd2638eaa410941f71e664bcd5da48686a695ca9e |
|
MD5 | fff567efc559ae277c3aa7fbeaae9297 |
|
BLAKE2b-256 | 2543cba70e0a9cb113615908663b43e00c5c73d158072f22afa0fb18fa63148a |