Skip to main content

Model backend for the HeiPlanet project

Project description

heiplanet-models

Description

This repository consists of a collection of models that share the same infrastructure code, used for the heiplanet project.

Installation

For usage

It is strongly recommended to use a virtual environment to install packages into. This will keep the package self-contained without its dependencies polluting the system, e.g. with python venv:

python3 -m venv .venv # creates a venv name 'venv' in a hidden directory on unix 

source ./.venv/bin/activate # activate the environment

Then, install the package from pypi:

pip install heiplanet-models 

In order to be able to visualize the computational graphs of the models you use or build, you need to install the package with the viz option. This will install the graphviz python package which will take care of the visualization.

pip install .[viz]

Note that if you are using zsh (default on macos), you need to add quotes

pip install ".[viz]"

Graphviz itself has additional dependencies it needs to install. For more details, see here.

For development

Clone the repository

git clone https://github.com/ssciwr/onehealth-model-backend.git

Create some virtual environment as described above. Then, go to the base directory of the repository, and run

pip install -e .

or including the graphviz dependency:

pip install -e .[viz]

again, you need to take care of shell specifics, e.g. on zsh:

pip install -e ".[viz]"

Please note the remark on graphviz's dependencies above.

Troubleshooting

to be done.

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

heiplanet_models-0.1.2.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heiplanet_models-0.1.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file heiplanet_models-0.1.2.tar.gz.

File metadata

  • Download URL: heiplanet_models-0.1.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for heiplanet_models-0.1.2.tar.gz
Algorithm Hash digest
SHA256 05315bcc96f95decaaf7c097f552eaa4659d11f96ccb696f510c9a2fd752338c
MD5 3ee44bbf48f788e3b667d9fd3edbe08c
BLAKE2b-256 f99bc70e2c7eff7239c42431ab8f40284480458f7eaec3822facfcb5e434306f

See more details on using hashes here.

File details

Details for the file heiplanet_models-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for heiplanet_models-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97e8a63f64b52ca947e65e3308281249a6d8c3602c947f9a982a59fc5d1a05e5
MD5 c7f936ca7ac183be79232a84d0517fde
BLAKE2b-256 0b55bea8fa8d2c7b4954792767c0edbbb65e2177137a2921768131a3a5172be8

See more details on using hashes here.

Supported by

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