Skip to main content

Implements the model presented in Fumagalli et al. (2020)

Project description

CI CodeCov codecov CodeQL Code style: black Code Style Check CodeFactor GitHub repo size GitHub license GitHub last commit GitHub Release Date GitHub release (latest by date)

Basic Usage

import Fumagalli_Motta_Tarantino_2020.Model as Model

# initialize the model (here you can adjust the parameters of the model)
model: Model.MergerPolicyModel = Model.MergerPolicyModel()

# print a summary of the outcome
print(model.summary())

Dependencies

These packages include all the needed imports for the functionality of this package.

Package   Version   Annotation  
scipy 1.8.0 Always
numpy 1.22.3 Always
black 22.1.0 For consistent code formatting
jupyter 1.0.0 For the demonstration in jupyter Notebooks
IPython 8.2.0 For the demonstration in jupyter Notebooks
pdoc 10.0.4 To generate the documentation from scratch

Install the dependencies with the following command:

$ pip install -r requirements.txt

(Note: Make sure you are operating in the same directory, where the requirements.txt is located.)

Tests

Run the unittests with the following command (pay attention to the current working directory):

python -m unittest discover Fumagalli_Motta_Tarantino_2020/tests "Test_*.py"

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Fumagalli_Motta_Tarantino_2020-0.1.0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page