Skip to main content

Scientific multi-model software for the numerical simulation of rockfalls.

Project description

Description

PlatRock is a multi-model software for the numerical simulation of rockfalls. This scientific tool implements rock propagation algorithms on 2D and 3D terrain and gives statistical data about resulting trajectories.

All other dependencies should be automatically installed by pip.

Installation

Prerequisites

At the moment PlatRock is only tested on debian-based platform unix distros. Prior to PlatRock installation, please check that the following dependencies are satisfied.

  • python >= 3.10, which is the default on modern linux distros ;
  • gdal (which can be installed on debian-based systems with sudo apt install g++ python3-dev libgdal-dev).

Modern python package uses python virtual environments, so do PlatRock. You can use the virtual environment manager you want, below are two examples.

In any case, don't forget to install the libgdal-dev package as mentionned above.

Using pipx

Install pipx on your disto:

sudo apt install pipx

Then install PlatRock from pypi repository or gitlab:

pipx install platrock #the more stable release, from pipy
 # OR
pipx install git+https://gitlab.com/platrock/platrock.git@dev #the latest development banch, may be unstable

You should normally be able to launch PlatRock by simply invoking it:

platrock myscript.py

You can also import it in your own python script, but in this case you must activate the corresponding venv created by pipx before:

pipx list #shows all pipx venv created, find platrock venv path
 # Usually, the command to activate PlatRock venv would be:
source "/home/$USER/.local/share/pipx/venvs/platrock/bin/activate"

In your script:

import platrock

Using poetry

PlatRock uses poetry as packaging/dependency manager. You can install PlatRock using poetry. First install poetry and git.

Then download platrock:

git clone https://gitlab.com/platrock/platrock.git`
cd platrock

Install PlatRock in ./.venv/:

poetry install

Finally launch PlatRock:

poetry run platrock myscript.py

Or import PlatRock from your own script, don't forget to activate PlatRock venv first:

poetry shell

In your script:

import platrock

Examples

Examples for all PlatRock simulation models are available on PlatRock gitlab.

Source code

The source code of platrock is also available on the gitlab repository. The master branch fits the version that is hosted on pypi.

Licence

PlatRock is licenced under the GNU General Public License v3 (GPLv3).

Contributors

  • François Kneib
  • Franck Bourrier
  • David Toe
  • Frédéric Berger
  • Stéphane Lambert

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

platrock-0.4.4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

platrock-0.4.4-cp312-cp312-manylinux_2_39_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

Details for the file platrock-0.4.4.tar.gz.

File metadata

  • Download URL: platrock-0.4.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-45-generic

File hashes

Hashes for platrock-0.4.4.tar.gz
Algorithm Hash digest
SHA256 c074ef5e9a27dd25543252e66c235b3bae86220299c94404ebe65b1d0bd78092
MD5 7245c8e035cb75493c04cfa87b4e8bb6
BLAKE2b-256 5e5fc186c1b53f32c340a612374c2702211726321f37f19e48441616662dc97d

See more details on using hashes here.

File details

Details for the file platrock-0.4.4-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

  • Download URL: platrock-0.4.4-cp312-cp312-manylinux_2_39_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.12, manylinux: glibc 2.39+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-45-generic

File hashes

Hashes for platrock-0.4.4-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 18a8f4fac4f7c561f91e0542131bab0aef8f0ec42f0553d25d82d991745e0f1d
MD5 9f5710fe3b11e6c4719328a5e14baeb6
BLAKE2b-256 73a8b3f0625b49eb4a9087af8818247c87e9db27985a590f3b0626e7b371b3ed

See more details on using hashes here.

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