Skip to main content

Collection of tasks for analyzing colony dynamics.

Project description

Build Status Lint Status Documentation Coverage Code style Version License

Collection of tasks for analyzing colony dynamics. Designed to be used both in Prefect workflows and as modular, useful pieces of code.

Installation

The collection can be installed using:

pip install abm-colony-collection

We recommend using Poetry to manage and install dependencies. To install into your Poetry project, use:

poetry add abm-colony-collection

Usage

Prefect workflows

All tasks in this collection are wrapped in a Prefect @task decorator, and can be used directly in a Prefect @flow. Running tasks within a Prefect flow enables you to take advantage of features such as automatically retrying failed tasks, monitoring workflow states, running tasks concurrently, deploying and scheduling flows, and more.

from prefect import flow
from abm_colony_collection import <task_name>

@flow
def run_flow():
    <task_name>()

if __name__ == "__main__":
    run_flow()

See cell-abm-pipeline for examples of using tasks from different collections to build a pipeline for simulating and analyzing agent-based model data.

Individual tasks

Not all use cases require a full workflow. Tasks in this collection can be used without the Prefect @task decorator by simply importing directly from the module:

from abm_colony_collection.<task_name> import <task_name>

def main():
    <task_name>()

if __name__ == "__main__":
    main()

or using the .fn() method:

from abm_colony_collection import <task_name>

def main():
    <task_name>.fn()

if __name__ == "__main__":
    main()

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

abm_colony_collection-0.3.4.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

abm_colony_collection-0.3.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file abm_colony_collection-0.3.4.tar.gz.

File metadata

  • Download URL: abm_colony_collection-0.3.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for abm_colony_collection-0.3.4.tar.gz
Algorithm Hash digest
SHA256 586cfae5cad8285725f2306a86041c16f18f85b1bfaea4c70b08fde1dea2c399
MD5 b8bece4925dd8da221c542b63f87a182
BLAKE2b-256 5251ddc3ed206c42ad559bc60c05fed4d26f76cdcc0372346041a9ac6801c921

See more details on using hashes here.

File details

Details for the file abm_colony_collection-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for abm_colony_collection-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 758fb4e7e6db8d3a06ccc36d41b2c7d043a01e9677395dece4204a76caf40007
MD5 7e40fa815f2a211bd95d162e16a7f0fa
BLAKE2b-256 e8e018f911e4801755b3babeae7f5d2e003c576c8c1982bd07d8463c6e69eeeb

See more details on using hashes here.

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