Pydidas quick-start guide#
Pydidas is usable both through its graphical user interface as well as through the command line / notebooks.
To quickly start using pydidas, there are multiple options:
Entry points (if pydidas was installed using pip)
Scripts in the
pydidas_scriptsfolder.Using the
pydidasmodule in the python shell.
Entry points#
If installed as wheel, pydidas offers the following entry points:
pydidas-guito start the graphical user interface.
pydidas-documentationto open the pydidas documentation in the default system web browser. Note: The pydidas module must have been run at least once (either through opening the GUI or imported in a python shell) for the documentation to have been created.
pydidas-clear-settingsRemove the stored registry keys for pydidas.
pydidas-updaterStart a script which automatically updates pydidas to the latest version available on GitHub.
pydidas-remove-local-filesThis script removes all local log files and stored configuration files.
run-pydidas-workflowScript to run a defined workflow in the console. This script also requires configuration files for the scan and diffraction experiment. Please refer to the full documentation for more details.
remove-pydidasRemove all local config files and registry settings from the system. Please note that this script will not remove the python code itself, but only cleans up the system.
Scripts#
Pydidas includes multiple scripts which are located in the pydidas_scripts folder,
which is located in the same folder as pydidas.
These can be called directly by python from the command line and they are:
pydidas_gui.pyto start the GUI.
pydidas_documentation.pyto open the html documentation in a browser.
run_pydidas_workflow.pyto run a processing workflow on the command line.
pydidas_updater_script.pyto update pydidas to the latest release published on GitHub.
clear_local_settings.pyto remove all registry settings written by pydidas.
Example#
If pydidas, was installed in /user/myname/code/python/my_packages/pydidas,
the pydidas_scripts will be located in
$ cd /user/myname/code/python/my_packages/pydidas_scripts
$ python pydidas_gui.py
Command line#
Much of pydidas’ functionality is also available from the command line or notebooks. Pydidas can be imported and used as any other python module. Please refer to the documentation, in particular to the Command line manuals.