{ "info": { "author": "Jan Kotanski", "author_email": "jankotan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Welcome to nxselector's documentation!\n=======================================\n\nAuthors: Jan Kotanski\n\nNeXus Component Selector\nis a GUI configuration tool dedicated to select components\nas well as datasources which constitute the XML configuration strings of\nNexus Data Writer via Sardana NeXus Recorder.\n\n| Source code: https://github.com/nexdatas/selector\n| Web page: https://nexdatas.github.io/selector\n| NexDaTaS Web page: https://nexdatas.github.io\n\n\n------------\nInstallation\n------------\n\nInstall the dependencies:\n\n| Sardana, PyTango, sphinx, Taurus, NXSRecSelector\n\nFrom sources\n^^^^^^^^^^^^\n\nDownload the latest version of NeXuS Configuration Server from\n\n| https://github.com/nexdatas/selector\n\nExtract the sources and run\n\n.. code-block:: console\n\n\t $ python setup.py install\n\nDebian packages\n^^^^^^^^^^^^^^^\n\nDebian Jessie (and Wheezy) packages can be found in the HDRI repository.\n\nTo install the debian packages, add the PGP repository key\n\n.. code-block:: console\n\n\t $ sudo su\n\t $ wget -q -O - http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add -\n\nand then download the corresponding source list\n\n.. code-block:: console\n\n\t $ cd /etc/apt/sources.list.d\n\t $ wget http://repos.pni-hdri.de/jessie-pni-hdri.list\n\nFinally,\n\n.. code-block:: console\n\n\t $ apt-get update\n\t $ apt-get install python-nxsrecselector nxselector\n\nTo instal other NexDaTaS packages\n\n.. code-block:: console\n\n\t $ apt-get install python-nxswriter nxsconfigtool nxstools python-nxsconfigserver nxsconfigserver-db\n\nand\n\n.. code-block:: console\n\n\t $ apt-get install python-sardana-nxsrecorder nxstaurusgui\n\nfor NeXus recorder and MacroGUI packages.\nFrom pip\n^^^^^^^^\n\nTo install it from pip you need also to install pyqt5, e.g.\n\n.. code-block:: console\n\n $ python3 -m venv myvenv\n $ . myvenv/bin/activate\n\n $ pip install pyqt5\n\n $ pip install nxselector\n\nMoreover it is also good to install\n\n.. code-block:: console\n\n $ pip install pytango\n $ pip install sardana\n $ pip install nxswriter\n $ pip install nxsrecselector\n $ pip install nxsconfigserver\n $ pip install nxstools\n $ pip install pymysqldb\n\n\n-------------------\nSetting environment\n-------------------\n\n\nSetting Saradna\n^^^^^^^^^^^^^^^\nIf sardana is not yet set up run\n\n\n.. code-block:: console\n\n\t $ Pool\n\n- enter a new instance name\n- create the new instance\n\nThen wait a while until Pool is started and in a new terminal run\n\n.. code-block:: console\n\n\t $ MacroServer\n\n- enter a new instance name\n- create the new instance\n- connect pool\n\nNext, run Astor and change start-up levels: for Pool to 2,\nfor MacroServer to 3 and restart servers.\n\nAlternatively, terminate Pool and MacroServer in the terminals and run\n\n.. code-block:: console\n\n $ nxsetup -s Pool -l2\n\nwait until Pool is started and run\n\n.. code-block:: console\n\n $ nxsetup -s MacroServer -l3\n\n\nAdditionally, one can create dummy devices by running `sar_demo` in\n\n.. code-block:: console\n\n\t $ spock\n\n\n\nSetting NeXus Servers\n^^^^^^^^^^^^^^^^^^^^^\n\nTo set up NeXus Servers run\n\n.. code-block:: console\n\n\t $ nxsetup -x\n\nor\n\n.. code-block:: console\n\n $ nxsetup -x NXSDataWriter\n $ nxsetup -x NXSConfigServer\n\t $ nxsetup -x NXSRecSelector\n\nfor specific servers.\n\nIf the `RecoderPath` property of MacroServer is not set one can do it by\n\n.. code-block:: console\n\n\t $ nxsetup -a /usr/lib/python2.7/dist-packages/sardananxsrecorder\n\nwhere the path should point the `sardananxsrecorder` package.\n\nGeneral overview\n================\n\n----------------\nDevice Selection\n----------------\n\nEvery measurement requires devices to be selected. The Component Selector (CS) is a graphical user interface serving this purpose. It is launched from a Linux terminal by\n\n.. code-block:: console\n\n $ nxselector\n\nor from Spock by\n\n.. code-block:: console\n\n p09/door/haspp09.01 [1]: nxselector\n\n.. _Figure_1.1:\n\n.. figure:: https://github.com/nexdatas/selector/blob/develop/doc/png/detectors_23.png?raw=true\n\n Figure 1.1: Component Selector: Detectors\n\nConfiguration of the each hardware device for the NeXus files is described inside a configution string, i.e. a configuration component. The employed configuration concept is inspired by the following hardware/configuration correspondences:\n.. For more details about NeXus configuration components and their data sources see Section 10.7\n\n| *measurement* <=> *file*\n| *experimental setup* <=> *NeXus configuration*\n| *hardware device* <=> *component*\n| *device attribute*, e.g. counter reading, motor position <=> *data source*\n|\n\nThe `Figure 1.1` displays the Detectors tab of the Component Selector including the available device components. Composite components are the one with multiple data sources. Simple components are distributed in the frames labelled Counters, ADC, MCA, etc. Components are selected by activating the *Sel.* checkbox. If the *Dis.* checkbox is enabled, the output of the device is displayed during the scan for monitoring purposes.\n\nSimple components may be part of composite components. As a consequence, selecting a composite component may implicitly select one or more simple components. This dependency has to be visible for the users. Therefore, simple components being implicitly selected are deactivated and their font colour changes to grey. The user may also move the mouse over a composite component to inspect the contents.\n\nIdeally all devices are contained in components ensuring that they have sensible NeXus paths and meaningful metadata associated with them. In practice this is not always possible. Consider a counter module with 32 channels. Some of them are permanently connected to specific detectors. It is an easy task to create components for these inputs. However, during the course of a beamtime, it may happen that a researcher needs to record some other signal. Depending on the circumstances it may be impossible to create a new component immediately. Still the new signal has to be recorded. In order to handle this situation, dynamical components have been introduced. They are automatically created whenever a selected device is not covered by a component.\n\nIn the upper part of the Selector window the user sets Scan File, Scan Directory and if consecutive scans are appended to one file or stored separately. To use NeXus Sardana Recorder the file extension has to be set to *.nxs* , *.nx* , *.h5*, *.ndf*. **Before the scan all the changes has to be confirmed by the Apply button**. Its action updates settings of the active Sardana measurement group and configuration of the Component Selector.\n\nThe Others button of Detectors allows for the user to add simple devices into the measurement group. Its attribute values will be stored for each the scan point.\n\nAfter devices have been selected and applied the state of all tabs is stored into a profile in the NeXuS Configuration Server. The **profile** contains setting informations, i.e. selected components, user data and file settings, required to prepare configuration for the NeXus writer. The profile extends its measurement group so they share the same name. It is possible to create several profiles. A required profile can be loaded to restore a particular device selection. It is done automatically by changing *MntGrp* in the Selector.\n\nMoreover, by pressing the *Save* or *Load* buttons, the user can save to a file or load the current scan profile. This way, the researcher can easily switch from one data acquisition setup to another.\n\n\n.. _Figure_1.2:\n\n.. figure:: https://github.com/nexdatas/selector/blob/develop/doc/png/descriptions_23.png?raw=true\n\n Figure 1.2: Component Selector: Descriptions\n\nThe Descriptions tab, `Figure 1.2`, displays components containing metadata which are stored only before or after the scan. They are divided into two groups: the *Mandatory* beamline-specific components and the *Optional* discipline-specific components. The *Mandatory* beamline group describes the source device and the facility. The *Optional* discipline group contains information about the spatial arrangement of the experimental setup, mainly motor positions. The user can select or deselect the optional components from the current profile.\n\nMoreover, the *Reset Desc.* button of Descriptions sets a group of descriptive components to the default one, i.e. defined in the DefaultAutomaticComponents property of the current NXSRecSelector server.\n\nThe *Others* button of Descriptions allows for the user to add simple devices into the profile descriptions, i.e. *Other Optional*. Its attribute values will be stored before the scan point.\n\nDuring appling the selected profile informations from Descriptive components are also stored in the *PreScanSnapshot* door environment variable.\nThis helps to store the metadata informations by other Sardana recorders.\n\n.. _Figure_1.3:\n\n.. figure:: https://github.com/nexdatas/selector/blob/develop/doc/png/udata_23.png?raw=true\n\n Figure 1.3: Component Selector: NeXus User Data\n\nIn order to describe the experiment completely some of the client data have to be provided by the user. The `Figure 1.3` shows the CS tab allowing the researcher to supply this information. Typical examples for user-supplied metadata are title, sample name and user comment.\n\nThe layout of the Component Selector can be easily adapted into different beamline specification in the Configuration tab.\n\n.. The Section 10.8.5 contains more detail description of the settings, i.e. the Configuration tag.\n\n-----\nIcons\n-----\n\nIcons fetched from http://findicons.com/pack/990/vistaico_toolbar.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nexdatas/selector", "keywords": "configuration scan nexus sardana recorder tango component data", "license": "GNU GENERAL PUBLIC LICENSE, version 3", "maintainer": "Jan Kotanski", "maintainer_email": "jankotan@gmail.com", "name": "nxselector", "package_url": "https://pypi.org/project/nxselector/", "platform": "Linux", "project_url": "https://pypi.org/project/nxselector/", "project_urls": { "Homepage": "https://github.com/nexdatas/selector" }, "release_url": "https://pypi.org/project/nxselector/3.13.3/", "requires_dist": null, "requires_python": "", "summary": "GUI for Setting Nexus Sardana Recorder", "version": "3.13.3" }, "last_serial": 5972039, "releases": { "3.13.2": [ { "comment_text": "", "digests": { "md5": "49024999633583755426bf1b77a6fdfa", "sha256": "bf02bd22fe4b393018108fc5f9b64f1594e813e3d05bb6008bafbe73e86f0ab4" }, "downloads": -1, "filename": "nxselector-3.13.2.tar.gz", "has_sig": false, "md5_digest": "49024999633583755426bf1b77a6fdfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 108885, "upload_time": "2019-10-14T14:54:41", "url": "https://files.pythonhosted.org/packages/06/12/ef574226afc31f3a93a71fe717ea1970565f60b0d042e2d7d14809a3f1be/nxselector-3.13.2.tar.gz" } ], "3.13.3": [ { "comment_text": "", "digests": { "md5": "5deee169c89fa41f6aca4649f32a3f7b", "sha256": "ad5a48609042b0e712796265edbe3a24f0a71eb0c6a4e418530e7a30e584990e" }, "downloads": -1, "filename": "nxselector-3.13.3.tar.gz", "has_sig": false, "md5_digest": "5deee169c89fa41f6aca4649f32a3f7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 108899, "upload_time": "2019-10-14T15:13:49", "url": "https://files.pythonhosted.org/packages/73/f4/9d17e43103b185443ef0176a400298277062fb1d25a65e3ae2052a213835/nxselector-3.13.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5deee169c89fa41f6aca4649f32a3f7b", "sha256": "ad5a48609042b0e712796265edbe3a24f0a71eb0c6a4e418530e7a30e584990e" }, "downloads": -1, "filename": "nxselector-3.13.3.tar.gz", "has_sig": false, "md5_digest": "5deee169c89fa41f6aca4649f32a3f7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 108899, "upload_time": "2019-10-14T15:13:49", "url": "https://files.pythonhosted.org/packages/73/f4/9d17e43103b185443ef0176a400298277062fb1d25a65e3ae2052a213835/nxselector-3.13.3.tar.gz" } ] }