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

Uploaded Python 3

File details

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

File metadata

  • Download URL: anypytools-1.20.5.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.5.tar.gz
Algorithm Hash digest
SHA256 390a0235f2eeb98e293faa19f388fc9c40e2f7bca4cbf03422080aaaf83a822f
MD5 c70b0fe99cc3a1a63ded5721358cb565
BLAKE2b-256 347d933d8cd098470a8933aaa7a524db50c73f74255e23c0e83fb7476a036b5d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: anypytools-1.20.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1d57eb786e2e2122db49850763d6cdf837223c7e1c698ecfacb25fb0d1db8f49
MD5 930898633cea218c2776e85d090a1e38
BLAKE2b-256 6c68c1d7c179471f7dcacbb67f059d1423fe243a1320bce531293c491fb68a64

See more details on using hashes here.

Provenance

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