1. Starting X-SOCS

Once installed, you can run X-SOCS from the command line with:


or, alternatively with python -m xsocs.

This will open X-SOCS main window, with no project loaded.


Fig. 1.1 Main Window

You can then either:

Command line options

Some options are available from the command line:

usage: xsocs [--version|--help] <command> [<args>]

The xsocs commands are:
   concat     Concatenate multiple scans into one HDF5 master file
   gui        Open xsocs main Graphical User Interface
   help       Show help of the following command

See 'xsocs help <command>' to read about a specific subcommand

Graphical User interface

ERROR:silx.utils.launcher:Error while reaching module 'xsocs._app.gui'
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/silx/utils/launcher.py", line 69, in get_module
    module = importlib.import_module(self.module_name)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/builds/kmap/xsocs/build/lib.linux-x86_64-cpython-37/xsocs/_app/gui.py", line 32, in <module>
    from ..gui import xsocs_main
  File "/builds/kmap/xsocs/build/lib.linux-x86_64-cpython-37/xsocs/gui/__init__.py", line 41, in <module>
    from silx.gui import colors as _colors
  File "/usr/local/lib/python3.7/site-packages/silx/gui/colors.py", line 37, in <module>
    from silx.gui import qt
  File "/usr/local/lib/python3.7/site-packages/silx/gui/qt/__init__.py", line 50, in <module>
    from ._qt import *  # noqa
  File "/usr/local/lib/python3.7/site-packages/silx/gui/qt/_qt.py", line 89, in <module>
    from PyQt5.QtGui import *  # noqa
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ERROR:silx.utils.launcher:Impossible to load module name 'xsocs._app.gui'
ERROR:silx.utils.launcher:Imposible to execute the command 'gui'

Dataset concatenation

usage: xsocs concat [-h] [-o OUTPUT] files [files ...]

Concatenate multiple (partial) scans into a single HDF5 master file

positional arguments:
  files                 Name of HDF5 files to concatenate (at least 2)

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Name of the master HDF5 file to create