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.6.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.6-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anypytools-1.20.6.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.6.tar.gz
Algorithm Hash digest
SHA256 34150152a98c267aa4534efa7d0535f603b42b47b416f22381123570aba7e72e
MD5 c786e1e7e9bad79ee1b8b1f8323668ed
BLAKE2b-256 72abb691a678fcba361f11d729ce60bd69e262f861374a02817abb3b1d48160f

See more details on using hashes here.

Provenance

The following attestation bundles were made for anypytools-1.20.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: anypytools-1.20.6-py3-none-any.whl
  • Upload date:
  • Size: 44.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 292a40dbc59e9b09174a31b04c2682045ab5329b07962259f19beb40cd3c6336
MD5 07d99c5c1a1a84b09ea0605d86c34d76
BLAKE2b-256 c2aa1a6b9255f32028602e4002e78cca8f228628af1cf5bb0797db20979c0695

See more details on using hashes here.

Provenance

The following attestation bundles were made for anypytools-1.20.6-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