Skip to main content

Elastica Pipelines

Project description

Elastica Pipelines

PyPI Status Python Version License

Read the documentation at https://elastica-pipelines.readthedocs.io/ Tests Codecov

pre-commit Black

Features

IO

  • Lazy loading of simulation time-series data generated by Elastica++ applications
  • Track a single, or a subset, or whole group of rods, over time using familiar slicing API

Installation

You can install Elastica Pipelines via pip from PyPI:

$ pip install elastica-pipelines

Usage

Please see the Command-line Reference for details.

IO

Python3 Python3 API: Alpha

from elastica_pipelines import io

# ...

# Read only access to data written by Elastica++
series = io.series(metadata="elastica_metadata.h5")

# use series like a python Mapping
for t, snapshot in series.iterations():
    print("Iteration: {0} at time {1}".format(t.iterate, t.time))

    # Snapshot is a mapping contain system types such as CosseratRods & Spheres
    # Here we access only cosserat rods
    for rod_id, rod in snapshot.cosserat_rods().items(): # snapshot['CosseratRod'] also works!
        if rod_id == 0:
            print("  Rod '{0}' attributes:".format(rod_id))
            # even rod is a Mapping, get its keys
            print("  {0}".format(list(rod.keys())))
        print("  Rod '{0}' position:".format(rod_id), rod['Position'])

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Elastica Pipelines is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

elastica_pipelines-0.2.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

elastica_pipelines-0.2.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file elastica_pipelines-0.2.0.tar.gz.

File metadata

  • Download URL: elastica_pipelines-0.2.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for elastica_pipelines-0.2.0.tar.gz
Algorithm Hash digest
SHA256 43d3b6373164a0ff5a8ddcf273e1dc644cdb3cafd2bab0df78e1d5b33bae2979
MD5 8a579c51174d858c69d4818eb8118d6f
BLAKE2b-256 585b729f7141dda6d675d4a91ef672086a25f2d0711a9f24c1c99ddeaedc4fea

See more details on using hashes here.

File details

Details for the file elastica_pipelines-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for elastica_pipelines-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c8a1989913c5b5625d1ffe157fe82d03de6892f6e1846da6ba80977cd93c4b7
MD5 7f05d25e0a2a2cd8ec014baa053064cc
BLAKE2b-256 a86e52c8bb70dbec5e7e83896fff565fb5c620967e1f71f17bdf8ac63f582303

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