Rethon#

A Python package for modeling the method of reflective equilibrium based on Beisbart, Betz and Brun (2021).

Installation#

With pip (👉 https://pypi.org/project/rethon/)

pip install rethon

From the source code:

You can install the package from the source code by

  • first git-cloning the repository:

    • git clone git@github.com:re-models/rethon.git

  • and then installing the package by running ‘pip install -e .’ from the local directory of the package (e.g. local-path-to-repository/rethon) that contains the setup file setup.py. (The -e-option will install the package in the editable mode.)

Note

The package requires a python version >= 3.8 and depends on the theodias package, which will be installed automatically by pip.

Documentation#

The tutorials provide step-by-step instructions of using the rethon package. Further details can be found in the API documentation.

Logging#

rethon logs via a logger named ‘rethon’ and configures 3 loggers (‘tau’,’rethon’ and ‘dd’) as specified in the configuration file code:rethon.config.logging-config.json. Both ‘tau’ and ‘rethon’ output their logs up to the DEBUG-Level to sys.stdout, sys.stderr and to the file ‘rethon.log’. The ‘dd’-logger uses the same output channels but does only log beginning from level ERROR.

If you want to customize the logging, you can remove the loggers’ handler and specify you own handlers (see, e.g., https://docs.python.org/3/howto/logging-cookbook.html).

Licence#

MIT Licence

References#