Skip to main content

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.

Metadata

Release files for elastica-pipelines 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elastica-pipelines 1.0.0
File Size Uploaded
elastica_pipelines-1.0.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elastica-pipelines 1.0.0
File Interpreter ABI Platform
elastica_pipelines-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / elastica_pipelines-1.0.0.tar.gz

Download URL elastica_pipelines-1.0.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d6e6bcc1bdc69dcf1eedcc23125d1da0b750d48ab71693c2c3183d0abdf49673
BLAKE2b-256 checksum
How to use checksums
594f5565c1ce0b5b2b114dc1026e56d21c421dc116ad8abf2737f0df68a7a86e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / elastica_pipelines-1.0.0-py3-none-any.whl

Download URL elastica_pipelines-1.0.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dd50193ef3c862f7bc1fb1fa1a1e28829ce52787b69bf1bafa770ebaf056239
BLAKE2b-256 checksum
How to use checksums
eef791cc02b3000f62bc35f5ced15ea2f1771b058fefe539c3e5da2ee6f35855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page