Skip to main content

Collection of tasks for analyzing colony dynamics.

Project description

Build Status Codecov Lint Status Documentation Code style

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.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: abm_colony_collection-0.3.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for abm_colony_collection-0.3.3.tar.gz
Algorithm Hash digest
SHA256 9f529fd35172047cd97ff4c669fc395fb6c87dc8d719e0b2ead1a1a474096ade
MD5 2e5acf30c1f602cc8ce911a85e28c997
BLAKE2b-256 480e157520c16571b9da32b9a391e5b703ae835f4ee46a5a2d35b8d5f4c93414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for abm_colony_collection-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 99847f69d291352b8ff667797ab92da48bc51efd8ad6b74219280cfa58f7fd90
MD5 c0ebe6337f2a70857228c3448d1ef6db
BLAKE2b-256 036305516beb4e7326cd234416203fc77b7a19692ee759ebb686e8a864f33c05

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