Skip to main content

Python tools and utilities for working with the AnyBody Modeling System

Project description

AnyPyTools

MIT License test JOSS paper

AnyPyTools is a toolkit for working with the AnyBody Modeling System (AMS) from Python. It enables reproduceable research with the AnyBody Modeling System, and bridges the gap to whole ecosystem of open source scientific Python.

The AnyPyTools Python package enables batch processing, parallization of model simulations, model sensitivity studies, and parameter studies, using either Monte-Carlo (random sampling) or Latin hypercube sampling. It makes reproducible research much easier and replaces the tedious process of manually automating the musculoskeletal simulations and aggregating the results.

If you use the library for publications please cite as:

Lund et al., (2019). AnyPyTools: A Python package for reproducible research with the AnyBody Modeling System. Journal of Open Source Software, 4(33), 1108, https://doi.org/10.21105/joss.01108

Installation

  • Download and install the pixi package manager
  • After installation open a command prompt in you project directory and type:
pixi init
pixi add anypytools

This will install a virtual environment with python, anypytools and all dependencies. You can then run you scripts in the virtual environment by typing by prefixing the command with pixi run: e.g. pixi run python myscript.py

The library is also available on PyPi for installing using pip.

Usage

The simplest case:

from anypytools import AnyPyProcess
app = AnyPyProcess()
macro = [
    'load "Model.main.any"',
    'operation Main.Study.InverseDynamics',
    'run',
]
app.start_macro(macro)

Please see the [Jupyter Notebook based tutorial], or check the the following for more information:

Don't panic

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anypytools-1.20.4.tar.gz (6.9 MB view details)

Uploaded Source

Built Distribution

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

anypytools-1.20.4-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file anypytools-1.20.4.tar.gz.

File metadata

  • Download URL: anypytools-1.20.4.tar.gz
  • Upload date:
  • Size: 6.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anypytools-1.20.4.tar.gz
Algorithm Hash digest
SHA256 41666f813e70cfdc48db95e0b240e62b042d4719b17a9d45cd2ddb18a01ef4d5
MD5 64aa0a27744533aeafcd86aab9ca0b67
BLAKE2b-256 6db534587398c9c244406d146420aa0cdb0ece8e40b5a4e9b2f13266298f3908

See more details on using hashes here.

Provenance

The following attestation bundles were made for anypytools-1.20.4.tar.gz:

Publisher: build.yml on AnyBody-Research-Group/AnyPyTools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anypytools-1.20.4-py3-none-any.whl.

File metadata

  • Download URL: anypytools-1.20.4-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anypytools-1.20.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e23cee9430514b17f458ad18d311239c6e64c4f262bb7e72ccbb092a7ee240e8
MD5 6b827ff997b846066b6bf651f6a6e090
BLAKE2b-256 fd1070b4c6f0500777b20ef34eebe2af368109f78f8d921fb27865cbf650449b

See more details on using hashes here.

Provenance

The following attestation bundles were made for anypytools-1.20.4-py3-none-any.whl:

Publisher: build.yml on AnyBody-Research-Group/AnyPyTools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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