Skip to main content

Parsli is a VTK+trame based viewer for fault system kinematics that enables fast exploration and export of time animation.

Project description

parsli

Actions Status PyPI version PyPI platforms PyPI download

Introduction

Parsli is a VTK+trame based viewer for fault system kinematics that enables fast exploration and export of time animation.

Getting started

First you should setup a virtual environment for this Python Application. You can use conda, uv or anything else for managing your Python runtime. For the following commands, we will be using uv with Python 3.10.

uv venv -p 3.10
source .venv/bin/activate
uv pip install parsli

Once your environment is loaded, you can start the viewer by running the following command:

# use remote rendering
python -m parsli.viewer --data ./data/model_0000000881_multi.hdf5

# use wasm for local rendering
python -m parsli.viewer --data ./data/model_0000000881_multi.hdf5 --wasm

# use shorthand executable
parsli --data ./data/model_0000000881_multi.hdf5

App

Keyboard binding

  • left/right/up/down arrow: Rotate camera by 1°. Modifier x5 <alt>.
  • -/+: Zoom out / Zoom in.
  • r: Reset camera to data
  • t: Snap view up to true vertical.
  • f: Focus to the mesh bounds
  • home: Go to first timestep
  • end: Go to last timestep
  • space: Toggle play/stop animation
  • </>: Previous/Next timestep. Modifiers x10 alt or shift, x100 alt+shift.

Once you've exported a couple of time animations, you can play them back using the player. Just add all the paths you want to see after the --data argument.

parsli-player --data ./export/dip_slip ./export/strike_slip ./export/dip_slip_formula ./export/strike_slip_formula

Player

Keyboard binding

  • right arrow: Go to next timestep
  • left arrow: Go to previous timestep
  • home: Go to first timestep
  • end: Go to last timestep
  • space: Toggle play/stop animation

Development setup

We assume your virtual environment is activated

uv pip install -e ".[dev]"
pre-commit install

This will automatically format and some static checking on the code at commit time, but you can also run it by hand using the following command line.

pre-commit run --all-files

Nox can also be used for running tests or linting the code.

# run everything
nox

# run just the linting
nox -s lint

Commit message convention

Semantic release rely on conventional commits to generate new releases and changelog.

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

parsli-1.2.2.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

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

parsli-1.2.2-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file parsli-1.2.2.tar.gz.

File metadata

  • Download URL: parsli-1.2.2.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsli-1.2.2.tar.gz
Algorithm Hash digest
SHA256 11c6f3217ad35ce5a9b08c28c7cb68fc9d65953bf7c25ad7a51f8476b997183d
MD5 a3bc3062ffa2427eadae530cde3a8695
BLAKE2b-256 d86a6456f03a020470cd6c6254fc0de58cda0b88ecc1708c538fba36ae9ad20d

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsli-1.2.2.tar.gz:

Publisher: test_and_release.yml on brendanjmeade/parsli

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

File details

Details for the file parsli-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: parsli-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 66.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parsli-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a46bbff5fb0bff34f8238b8e3cb74aac56b3bd5fce42aecb720a88ae4698d21
MD5 8263e5952abd9879d3709843b0e7d04b
BLAKE2b-256 e106523f1778c863bd73ab8ab5ab2435f4997f827bb1179afd7200ffbac9bd5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for parsli-1.2.2-py3-none-any.whl:

Publisher: test_and_release.yml on brendanjmeade/parsli

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