All Projects → CNR-Engineering → PyTelTools

CNR-Engineering / PyTelTools

Licence: GPL-3.0 license
Python Telemac Tools for post-processing tasks (includes a workflow)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PyTelTools

TopicsExplorer
Explore your own text collection with a topic model – without prior knowledge.
Stars: ✭ 53 (+120.83%)
Mutual labels:  pyqt5
Polaris
Polaris is a Face recognition attendance system .
Stars: ✭ 211 (+779.17%)
Mutual labels:  pyqt5
koapy
KOAPY 는 키움 OpenAPI 를 Python 에서 쉽게 사용할 수 있도록 만든 라이브러리 패키지 및 툴입니다.
Stars: ✭ 103 (+329.17%)
Mutual labels:  pyqt5
VaspStudio
An useful tool to submit your VASP job on HPC, manage your jobs and extract eneries...自动化VASP任务提交、计算结果提取,任务文件管理的工具
Stars: ✭ 63 (+162.5%)
Mutual labels:  pyqt5
qt-template
Template/Example of Qt/QML built with CMake/qmake. (include PyQt and PySide2)
Stars: ✭ 15 (-37.5%)
Mutual labels:  pyqt5
Pyslvs-UI
An open source planar linkage mechanism simulation and mechanical synthesis system.
Stars: ✭ 130 (+441.67%)
Mutual labels:  pyqt5
python-dersleri
Python Programlama, Masaüstü Uygulamaları, Web Geliştirme ve Daha Fazlası
Stars: ✭ 245 (+920.83%)
Mutual labels:  pyqt5
qt-tile-layout
A tile layout for PyQt5
Stars: ✭ 18 (-25%)
Mutual labels:  pyqt5
linux-show-player
Linux Show Player - Cue player designed for stage productions
Stars: ✭ 147 (+512.5%)
Mutual labels:  pyqt5
JamTools
JamTools是一个跨平台的小工具集,包含了截屏、录屏、文字识别、各种格式转换、鼠标键盘动作录制播放、文件传输、聊天机器人等功能
Stars: ✭ 73 (+204.17%)
Mutual labels:  pyqt5
CRUD-SQLite-
Python 3.6, PyQT5, SQLite, CRUD
Stars: ✭ 21 (-12.5%)
Mutual labels:  pyqt5
CanSat-Ground-station
Code for a CanSat or OBCs GUI ground station where different sensor data are displayed in real time. No sensors needed to try it.
Stars: ✭ 55 (+129.17%)
Mutual labels:  pyqt5
timetable
Project on generating a timetable for university (NP-Hard problem)
Stars: ✭ 18 (-25%)
Mutual labels:  pyqt5
dunya-desktop
A modular, customizable and open-source desktop application for accessing and visualizing music data.
Stars: ✭ 76 (+216.67%)
Mutual labels:  pyqt5
Grabber
A wrapper for Youtube-dl for Windows.
Stars: ✭ 22 (-8.33%)
Mutual labels:  pyqt5
Beauty
从中央天气网获取七天天气数据http://www.weather.com.cn/ 搜索框联想功能,根据输入联想位置名称和城市代码 窗体呈现,每一个卡片在hover时有三个动画,上升一定高度,阴影渐变出现,offset渐变增加,卡片上方按钮渐变出现
Stars: ✭ 16 (-33.33%)
Mutual labels:  pyqt5
Robust-and-efficient-post-processing-for-video-object-detection
No description or website provided.
Stars: ✭ 107 (+345.83%)
Mutual labels:  post-processing
Be-Focussed-Productivity-Monitor
PyQt application for Windows and Linux to monitor productivity while working. It will also notify when to take a break after a long focussed work.
Stars: ✭ 13 (-45.83%)
Mutual labels:  pyqt5
antz
ANTz immersive 3D data visualization engine
Stars: ✭ 25 (+4.17%)
Mutual labels:  visualization-tools
hnn
The Human Neocortical Neurosolver (HNN) is a software tool that gives researchers/clinicians the ability to develop/test hypotheses on circuit mechanisms underlying EEG/MEG data.
Stars: ✭ 62 (+158.33%)
Mutual labels:  pyqt5

PyTelTools

Python package

Tested versions: 3.6, 3.7, 3.8, 3.9.

Documentations

Installation and requirements

PyTelTools relies on Python3 and requires packages which are listed in requirements.txt.

⚠️ If you have multiple versions of Python installed, beware of using the right python or pip executable (or consider using a virtual environnement if you are on Linux), which has to be a Python 3 version.

ℹ️ For Windows users who face problems with the installation of these packages (especially PyQt5, scipy or numpy), consider using a Python version with a full set of pre-installed scientific packages, such as WinPython or Conda. All the major packages will be already installed, therefore it should facilitate the installation.

It is even possible to download a WinPython portable installation for Python 3.6 (64 bits) with all the dependencies required by PyTelTools (and many more packages) already installed here (~500 MB).

PyTelTools can be installed as a Python module (A) or an external program (B). The recommended installation is within Python (A) as it becomes fully integrated with Python and more easier to install, upgrade and use.

A) Installation as Python module

If you want to use a virtual environment do the following:

$ virtualenv venv --python=python3
$ source venv/bin/activate

This step to create and use virtualenv is optional and can also be done trough make venv.

PyTelTools can be installed directly from its repository with pip:

# user install
pip install -e git://github.com/CNR-Engineering/PyTelTools.git#egg=pyteltools --user
# default install (eventually in a virtualenv or needs to be root)
pip install -e git://github.com/CNR-Engineering/PyTelTools.git#egg=pyteltools

ℹ️ If you do not have a git client (which might be the case if you are using Windows), you can try to install it with:

pip install https://github.com/CNR-Engineering/PyTelTools/zipball/master

Upgrade

To upgrade PyTelTools, simply use pip:

$ pip install PyTelTools --upgrade

B) PyTelTools as an external program

B.1) Get the source code

Clone source code repository in a folder PyTelTools.

$ git clone https://github.com/CNR-Engineering/PyTelTools.git

ℹ️ If you do not have a git client, simply unzip the source code repository.

For the next steps, the source code is expected to be in a folder named PyTelTools (containing this README.md file).

B.2) Install dependencies

If you want to use a virtual environnement do the following:

$ virtualenv venv --python=python3
$ source venv/bin/activate

This step to create and use virtualenv is optional and can also be done trough make venv.

Packages installation can be done directly with pip:

$ pip install -r requirements.txt

Usage

Depending on the followed installation procedure, see the correspond paragraph.

A) Python module

A.1) Inside a Python interpreter

If PyTelTools is installed (the module is named pyteltools), it can be imported with:

$ python
>>> import pyteltools
>>>

Then all the methods and classes are accessible (such as pyteltools.slf.Serafin).

It can be usefull to define your own script adapted to your needs and still relying on PyTelTools core.

A.2) Call scripts

# Classic or Workflow interface (GUI)
$ pyteltools_gui.py
# Command line script (CLI) can be called directly from any directory
$ slf_base.py -h

Beware, that the Python executable is the one you configured (a Python3 which meets the requirements presented above). Otherwise you could try to specify complete path to the Python executable and the script.

B) PyTelTools as an external program

B.1) Configure PYTHONPATH

Firstly, add the PyTelTools folder (which contains this README.md file) repository into the PYTHONPATH environment variable of your operating system.

For Windows, you can find some help on the official python documentation.

On Linux, you easily do this through a command line like (or add directly this line in your ~/.bashrc):

$ export PYTHONPATH=$PYTHONPATH:/home/opentelemac/PyTelTools

Open interface

From the PyTelTools folder (containing this README.md file), simply run:

$ python cli/pyteltools_gui.py
# See help message to open a specific interface (classic or workflow)
$ python cli/pyteltools_gui.py -h

Use command line for workflow

Load a workflow project file in the GUI (in mono tab):

$ python pyteltools/workflow/workflow_gui.py -i path_to_workflow_project_file.txt

Load and run a workflow project from the command line:

$ python pyteltools/workflow/mono_gui.py -i path_to_workflow_project_file.txt
$ python pyteltools/workflow/multi_gui.py -i path_to_workflow_project_file.txt

The argument -h provides a help message for the corresponding script and specify its usage. Output verbosity can be increased (debug mode) with -v argument.

Configure

PyTelTools comes with a set of default parameters which determine its behavior and some assumptions and options.

The recommended way to modify PyTelTools configuration is to write a user configuration file in JSON file format and refer to it in an environment variable named PYTELTOOLS_SETTINGS. The environment variable PYTELTOOLS_SETTINGS has to contain the absolute path to this file. For example, it could something like: /home/user/pyteltools/cfg.json or C:\Users\MyAccount\Documents\config_pyteltools.json.

The parameters defined in the user configuration file will be used instead of the default parameter.

For example to change default Serafin language (for variable detection) and to change increase verbosity (to debug mode), the JSON file should be:

{
    "LANG": "en",
    "LOGGING_LEVEL": 10
}

Here is a second example of a JSON configuration file with a more complex configuration:

{
    "DIGITS": 8,
    "NCSIZE": 6,
    "FIG_SIZE": [12, 8],
    "FMT_COORD": "{:.5f}",
    "SCENE_SIZE": [2000, 1200],
    "SERAFIN_EXT": [".slf", ".srf", ".res"],
    "WRITE_XYZ_HEADER": false,
    "X_AXIS_LABEL": "X coordinate (m)",
    "Y_AXIS_LABEL": "Y coordinate (m)",
    "DEFAULT_COLORS":
    {
        "Yellow": "#bcbd22",
        "Cyan": "#17becf",
        "Red": "#d62728"
    }
}

PyTelTools configuration relies on the Python package simple-settings and all the parameters are defined and described in pyteltools/conf/default_settings.py.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].