Skip to main content

Collection of tasks for initializing ABM simulations.

Project description

Build status Lint status Documentation Coverage Code style Version License

Collection of tasks for initializing ABM simulations. 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-initialization-collection

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

poetry add abm-initialization-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_initialization_collection.<module_name> 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_initialization_collection.<module_name>.<task_name> import <task_name>

def main():
    <task_name>()

if __name__ == "__main__":
    main()

or using the .fn() method:

from abm_initialization_collection.<module_name> 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_initialization_collection-0.6.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

abm_initialization_collection-0.6.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file abm_initialization_collection-0.6.1.tar.gz.

File metadata

File hashes

Hashes for abm_initialization_collection-0.6.1.tar.gz
Algorithm Hash digest
SHA256 ce1cc88fac6c3bb3037fcbb54aa90d0fe27fc9fc2afb07e09f531a3e7086a857
MD5 f988a32031de4b64638a4c91b2798e00
BLAKE2b-256 048818c753b69f3b4ae3b84fc49c6131222afe044a4b18ac47688b7d8ffe0221

See more details on using hashes here.

File details

Details for the file abm_initialization_collection-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for abm_initialization_collection-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 808444f8fb5fde919c2c9ae6f5d241bc6958814606fd82fc9ed96a604f5e9801
MD5 c581c619cd2a4d02f58dadacb3e7610a
BLAKE2b-256 126a016e79f993ee3a5b47c2366b8e382b87e1834ec1520de5dc7fbbbb07b097

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