tofu typically delivers at least 2 bash scripts to be executable driectly from the command line:
- tofuplot : load data from imas and plot it in an interactive figure
- tofucalc : load data from imas and use it to calculate synthetic data for a diagnostic and plot it in an interactive figure
They can be used only when the sub-package imas2tofu is available (i.e.: only when imas is available), but in that case they greatly simplify calls to tofu for users not familiar with python. They do not allow as many options as calling tofu from the ipython console, but they provide the basics for an everyday use.
These 2 binaries shall be automatically deloyed by setup.py at tofu installation in order to be available straight from the command line.
We'll use the tool that @lasofivec found recently.
Most online sources mention that the method entry_points is preferrable over scripts because scripts is the old way, and cannot be easily tested, and entry_points allo for better portability and cross-platform compatibility via pip.
See here, and here for example
tofu typically delivers at least 2 bash scripts to be executable driectly from the command line:
They can be used only when the sub-package imas2tofu is available (i.e.: only when imas is available), but in that case they greatly simplify calls to tofu for users not familiar with python. They do not allow as many options as calling tofu from the ipython console, but they provide the basics for an everyday use.
These 2 binaries shall be automatically deloyed by setup.py at tofu installation in order to be available straight from the command line.
We'll use the tool that @lasofivec found recently.
Most online sources mention that the method
entry_pointsis preferrable overscriptsbecausescriptsis the old way, and cannot be easily tested, andentry_pointsallo for better portability and cross-platform compatibility via pip.See here, and here for example