Skip to main content

Calibration tool for IDM-Tools

Project description

![Staging: idmtools-calibra]

idmtools-calibra

Table of Contents

User Installation

pip install idmtools-calibra

Pre-requisites

  • Python 3.6/3.7 x64

Development Environment Setup

When setting up your environment for the first time, you can use the following instructions

First Time Setup

  1. Clone the repository:
    > git clone https://github.com/InstituteforDiseaseModeling/idmtools_calibra.git
    
  2. Create a virtualenv. On Windows, please use venv to create the environment python -m venv idmtools_calibra On Unix(Mac/Linux) you can use venv or virtualenv
  3. Activate the virtualenv
  4. Then run python ./.dev_scripts/bootstrap.py. This will install all the tools.

Development Tips

There is a Makefile file available for most common development tasks. Here is a list of commands

clean       -   Clean up temproary files
lint        -   Lint package and tests
test        -   Run All tests
coverage    -   Run tests and generate coverage report that is shown in browser

On Windows, you can use pymake instead of make

Building docs

From your virtualenv, install idmtools_calibra and all dependencies. Then from the docs folder, run pip install -r requirements.txt. You can build the docs from that folder using make html.

To pick up docstring changes, you must re-run the setup script to include those changes in the itertool installation. Then run make clean and re-run make html.

Documentation on Read the Docs is available at https://docs.idmod.org/projects/idmtools_calibra/en/latest/.

Resume Supports Parameters

CalibManager's run_calibration method supports the following parameters for resume action, for example:

run_calibration(resume=True, iteration=2, iter_step='analyze')

  • resume: bool, default=False, required for resume Note: resume=True is required for resume, otherwise all the parameters will be ignored
  • iteration: int, default=None, from which iteration to resume Note: in None case, calibra will detect and take the last iteration from last run
  • iter_step: str, default=None, from which calibration step to resume Note: in None case, calibra will detect and take the valid step of the iteration
  • loop: bool, default=True, if like to continue to next iteration Note: by default, resume will continue to run next iteration
  • max_iterations, int, default=None, user can override the max_iterations defined in calib_manager Note: in None case, calibra will take max_iterations defined in calib_manager
  • backup: bool, default=False, if like to backup Calibration.json Note: by default, resume will not make a backup of Calibration.json
  • dry_run: bool, default=False, if like to really execute resume action Note: by default (dry_run= False), resume will go ahead to execute resume action

iter_step supports the following options:

  • commission: will start to run a new iteration
  • analyze: analyze the output data from given iteration
  • plot: just plot for given iteration
  • next_point: go directly to next iteration

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

idmtools_calibra-2.0.0.dev1.tar.gz (128.9 kB view details)

Uploaded Source

Built Distribution

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

idmtools_calibra-2.0.0.dev1-py3-none-any.whl (190.5 kB view details)

Uploaded Python 3

File details

Details for the file idmtools_calibra-2.0.0.dev1.tar.gz.

File metadata

  • Download URL: idmtools_calibra-2.0.0.dev1.tar.gz
  • Upload date:
  • Size: 128.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for idmtools_calibra-2.0.0.dev1.tar.gz
Algorithm Hash digest
SHA256 b1332cc7b7ce145fd8cd39bed4f093c39544a6b28929c0f2fe56c30073a017a7
MD5 2bea92a719155d71f6e52210786d6096
BLAKE2b-256 a6b004220833eb81cc9050bedf54771bbdd0f69ef7c98e4f04327fc0b9d6f2f3

See more details on using hashes here.

File details

Details for the file idmtools_calibra-2.0.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for idmtools_calibra-2.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 df7fcfc173920d9b95205ced28045b2ff221623330480023b29be34e16a69ce3
MD5 c5da9c01043e9542aea81267f3f928a4
BLAKE2b-256 7a69b2a9b3d8692b7ae01a59eae009e9b6b0e9276eaeb3a3989862ec404080a6

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