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
--useroption on order to install only for current user. - You can use
--prefixoption to specify the directory where the installation will be done - You can use
-eoption to install in developer mode; such that any change in*.pysource 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
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 mola_treelab-0.3.0.tar.gz.
File metadata
- Download URL: mola_treelab-0.3.0.tar.gz
- Upload date:
- Size: 152.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe0af094e259c2897b5de3f9fdea62b038892cc64f7bce0ea46918e77b700018
|
|
| MD5 |
e221e137591fa828d8fdbd3135bb6713
|
|
| BLAKE2b-256 |
242219dea8bf9ede3acbfde843efc5e8cc9e44501dc14d5ec4037bae94454bfe
|
File details
Details for the file mola_treelab-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mola_treelab-0.3.0-py3-none-any.whl
- Upload date:
- Size: 148.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c5eab87f88702250745b6b30dc243b6fd77e88ef3e797143467a8ee3ec1612
|
|
| MD5 |
fa5dea039cf0373a1bf8fa5126ffc067
|
|
| BLAKE2b-256 |
0cb0d6ce65dfb02f73b35b9115d28b6d4e0b8fe15ec507610107aabf1c6dc3de
|