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
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
Hashes for mola_treelab-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed5c2d92fd8d1feeee1e3d5c519dbd4da67767175a3b5f11190f38cf621895e |
|
MD5 | e37b27631c93191d8ced3bfde6d65e5f |
|
BLAKE2b-256 | 19482f83fc9e12d0e401b7ab63574cd1a684d1df2f24bffd47bbcd05ad5e31cd |