Skip to main content

MOLA-treelab is an ONERA code that implements an interface to CGNS

Project description

TreeLab is part of MOLA software, fully sharing its license and rights.

Installation

From sources

Use git clone command in order to download the source files:

git clone https://github.com/Luispain/TreeLab

From a working Python environment, you can compile using pypi. For example, a user-only installation would be done as follows:

python3 -m pip --user install .
  • You may use --user option on order to install only for current user.
  • You can use --prefix option to specify the directory where the installation will be done
  • You can use -e option to install in developer mode; such that any change in *.py source files will be immediately take effect

If you do not have admin rights and you encounter problems using --prefix, then try force reinstalling all dependencies:

python3 -m pip install --force-reinstall --no-cache-dir --ignore-installed --prefix=/your/path/to/treelab/installation mola-treelab

From stable releases

PyPi

python3 -m pip --user install mola-treelab

Make sure that the installation bin directory is seen by your PATH environment variable. For exemple, in Linux:

export PATH=$PATH:~/.local/bin

Usage

You may use the API of TreeLab using a python script:

from treelab import cgns
n = cgns.Node( Name='jamon', Value=['croquetas', 'morcilla'])
n.save('out.cgns', verbose=True)

From command line, you can launch the GUI using treelab command, optionnaly followed by the absolute or relative path of the CGNS file to open and optionally using the -s option in order to load only the skeleton of the tree, for example:

treelab out.cgns

treelab showing node

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

mola_treelab-0.4.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

mola_treelab-0.4.4-py3-none-any.whl (151.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mola_treelab-0.4.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for mola_treelab-0.4.4.tar.gz
Algorithm Hash digest
SHA256 9509a684be086a65a352ec8825b9b8734848ce925870ceb3a5fda57da3a6984d
MD5 b03f3c9e6ca167d393d06c3594607e42
BLAKE2b-256 d3bb3f3186fbae100b0319b542a6888c07be268980d8ecdf3134ef529d1939b3

See more details on using hashes here.

File details

Details for the file mola_treelab-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: mola_treelab-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 151.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for mola_treelab-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ecdbb138a00a7fc0511aa8d8f0174a086d57cffa25da9f2aa1744bf67998466c
MD5 6d33f1e303d23f5a5d9a275c6f77c0f5
BLAKE2b-256 0ff32c85c5858c497564b46e6a98f8859ce81cb22fda8afd10084acc259d0520

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