Parsli is a VTK+trame based viewer for fault system kinematics that enables fast exploration and export of time animation.
Project description
parsli
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
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
altorshift, x100alt+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
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsli-1.2.5.tar.gz.
File metadata
- Download URL: parsli-1.2.5.tar.gz
- Upload date:
- Size: 43.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59d903d81d0c882ade1c45d4fc92068133cc8f632baedcfe21f40411977b3553
|
|
| MD5 |
53936e9a6f9fe3b01dacc07655709fe0
|
|
| BLAKE2b-256 |
bf608f7c4efc5f4b9f53c6e31673c4429b44a44911a817b94441b1729e9c1a03
|
Provenance
The following attestation bundles were made for parsli-1.2.5.tar.gz:
Publisher:
test_and_release.yml on brendanjmeade/parsli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsli-1.2.5.tar.gz -
Subject digest:
59d903d81d0c882ade1c45d4fc92068133cc8f632baedcfe21f40411977b3553 - Sigstore transparency entry: 232760129
- Sigstore integration time:
-
Permalink:
brendanjmeade/parsli@dd04c274db45da6eafe8ec0219cf2a3cc10af6e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/brendanjmeade
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@dd04c274db45da6eafe8ec0219cf2a3cc10af6e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file parsli-1.2.5-py3-none-any.whl.
File metadata
- Download URL: parsli-1.2.5-py3-none-any.whl
- Upload date:
- Size: 43.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd388d22305b325f6f39240e218d9884a3f873fd8761c6b03a27acfe2de91e5
|
|
| MD5 |
ba7734a276ad811bd3e729b53348e9d1
|
|
| BLAKE2b-256 |
be73e99858fba2f02fafe3424edd96ccc0c4bf4ef51724191b897b0ed7fdc36c
|
Provenance
The following attestation bundles were made for parsli-1.2.5-py3-none-any.whl:
Publisher:
test_and_release.yml on brendanjmeade/parsli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsli-1.2.5-py3-none-any.whl -
Subject digest:
efd388d22305b325f6f39240e218d9884a3f873fd8761c6b03a27acfe2de91e5 - Sigstore transparency entry: 232760131
- Sigstore integration time:
-
Permalink:
brendanjmeade/parsli@dd04c274db45da6eafe8ec0219cf2a3cc10af6e4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/brendanjmeade
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@dd04c274db45da6eafe8ec0219cf2a3cc10af6e4 -
Trigger Event:
push
-
Statement type: