Sirius HLA CONS - GUI
===========
This repo contains various PyDM OPIs in use.
[![Publish siriuspy to PyPI](https://github.com/lnls-sirius/pydm-opi/actions/workflows/pypi.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/pypi.yml)
[![Lint](https://github.com/lnls-sirius/pydm-opi/actions/workflows/lint.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/lint.yml)
[![Test and Coverage](https://github.com/lnls-sirius/pydm-opi/actions/workflows/tests.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/tests.yml)
![Latest tag](https://img.shields.io/github/tag/lnls-sirius/pydm-opi.svg?style=flat)
[![Latest release](https://img.shields.io/github/release/lnls-sirius/pydm-opi.svg?style=flat)](https://github.com/lnls-sirius/pydm-opi/releases)
[![PyPI version fury.io](https://badge.fury.io/py/siriushlacon.svg)](https://pypi.python.org/pypi/siriushlacon/)
[![Read the Docs](https://readthedocs.org/projects/spack/badge/?version=latest)](https://lnls-sirius.github.io/pydm-opi/)
Develop
-------
In order to contribute with this repository the developer must have **pre-commit** installed and enabled.
```command
pip install pre-commit
pre-commit install
```
Install
-------
[Windows instructions](miscellaneous/windows).
Available at **PyPi** https://pypi.org/project/siriushlacon/, can be installed using pip but specific versions of QT are needed.
### Conda
#### Install (Linux)
```command
# Install Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
# Remove the install script
rm Miniconda3-latest-Linux-x86_64.sh
```
#### Install (Windows)
Download at https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
**Important**
- Local installation (single user only).
- Add to the PATH
The user should check if conda is enabled. The powershell prompt should look like:
```powershell
(base) ...
```
In order to setup conda correctly on powershell use the command below then restart the shell application:
```powershell
conda init powershell
```
Set the powershell execution policy so external scripts are availble https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.1
```powershell
Set-ExecutionPolicy RemoteSigned
```
#### Environment setup
Create a conda environment using a tested python version
```command
conda create --name py36 python=3.6
```
Environment dependencies:
```command
# Activate the environment "py36", the shell prompt should start with "(py36) ..."
conda activate py36
# Enable conda-forge channel
conda config --add channels conda-forge
conda config --set channel_priority strict
# Install EPICS base
conda install -c conda-forge/label/cf202003 epics-base
# Install dependencies
conda install -c conda-forge bottleneck
conda install -c conda-forge pyqt==5.12.3
conda install -c conda-forge qt==5.12.9
conda install -c conda-forge pydm==1.10.4
# Install interfaces
pip install --upgrade siriushlacon
```
## Desktop shortcut
### Windows:
This assumes a conda environment named `py36`. The `.lnk` content must be updated in case of a different name.
```powershell
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lnls-sirius/pydm-opi/master/miscellaneous/windows/Create-Shortcut.ps1'));
```
Run
---
To launch the main window use the script: `sirius-hla-as-ap-conlauncher.py`.
On Windows make sure that the correct `python.exe` or `pythonw.exe` is the default program for `*.py` files.
```powershell
pythonw.exe (Get-Command sirius-hla-as-ap-conlauncher.py).Path
pythonw.exe (Get-Command sirius-hla-as-va-vbc.py).Path
```
# 2.4.1 - Sprint 15
- UPDATE: Merge PR beaglebones
- FIX: Check Python version before using `dataclasses` (required 3.7+)
# 2.4.0 - Sprint 15
- FIX: agilent4uhv details table crash.
- FIX: regatron alarm tree view with broken PV names.
- NEW: Central logging module `logging.py`.
- NEW: Include CODEOWNERS file.
- NEW: Include `siriushlacon_launcher`; usage of setup entrypoints.
- UPDATE: Center MKS ans Agilent table labels.
- UPDATE: Custom PyDMAppliacation instance using `sirius-hla-as-ap-generic-launcher` entrypoint instead of `pydm`.
- UPDATE: Widgets and generic components into `widgets/`.
- UPDATE: launcher img layout.
Raw data
{
"_id": null,
"home_page": "https://github.com/lnls-sirius/pydm-opi/",
"name": "siriushlacon",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Claudio F. Carneiro",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/eb/9b/3cd1091f5da976e6011305112418a0858593e1fb27ff1fd8ca363b8b388c/siriushlacon-2.7.2.tar.gz",
"platform": null,
"description": "Sirius HLA CONS - GUI\n===========\n\nThis repo contains various PyDM OPIs in use.\n\n[![Publish siriuspy to PyPI](https://github.com/lnls-sirius/pydm-opi/actions/workflows/pypi.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/pypi.yml)\n[![Lint](https://github.com/lnls-sirius/pydm-opi/actions/workflows/lint.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/lint.yml)\n[![Test and Coverage](https://github.com/lnls-sirius/pydm-opi/actions/workflows/tests.yml/badge.svg)](https://github.com/lnls-sirius/pydm-opi/actions/workflows/tests.yml)\n\n\n![Latest tag](https://img.shields.io/github/tag/lnls-sirius/pydm-opi.svg?style=flat)\n[![Latest release](https://img.shields.io/github/release/lnls-sirius/pydm-opi.svg?style=flat)](https://github.com/lnls-sirius/pydm-opi/releases)\n[![PyPI version fury.io](https://badge.fury.io/py/siriushlacon.svg)](https://pypi.python.org/pypi/siriushlacon/)\n\n[![Read the Docs](https://readthedocs.org/projects/spack/badge/?version=latest)](https://lnls-sirius.github.io/pydm-opi/)\n\nDevelop\n-------\nIn order to contribute with this repository the developer must have **pre-commit** installed and enabled.\n```command\npip install pre-commit\npre-commit install\n```\n\nInstall\n-------\n[Windows instructions](miscellaneous/windows).\n\nAvailable at **PyPi** https://pypi.org/project/siriushlacon/, can be installed using pip but specific versions of QT are needed.\n\n### Conda\n\n#### Install (Linux)\n```command\n# Install Miniconda\nwget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh\nsh Miniconda3-latest-Linux-x86_64.sh\n\n# Remove the install script\nrm Miniconda3-latest-Linux-x86_64.sh\n```\n\n#### Install (Windows)\n\nDownload at https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe\n\n**Important**\n\n- Local installation (single user only).\n- Add to the PATH\n\nThe user should check if conda is enabled. The powershell prompt should look like:\n```powershell\n(base) ...\n```\n\nIn order to setup conda correctly on powershell use the command below then restart the shell application:\n```powershell\nconda init powershell\n```\n\nSet the powershell execution policy so external scripts are availble https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.1\n\n```powershell\nSet-ExecutionPolicy RemoteSigned\n```\n\n#### Environment setup\n\nCreate a conda environment using a tested python version\n```command\nconda create --name py36 python=3.6\n```\n\nEnvironment dependencies:\n```command\n# Activate the environment \"py36\", the shell prompt should start with \"(py36) ...\"\nconda activate py36\n\n# Enable conda-forge channel\nconda config --add channels conda-forge\nconda config --set channel_priority strict\n\n# Install EPICS base\nconda install -c conda-forge/label/cf202003 epics-base\n\n# Install dependencies\nconda install -c conda-forge bottleneck\nconda install -c conda-forge pyqt==5.12.3\nconda install -c conda-forge qt==5.12.9\nconda install -c conda-forge pydm==1.10.4\n\n# Install interfaces\npip install --upgrade siriushlacon\n```\n\n## Desktop shortcut\n### Windows:\nThis assumes a conda environment named `py36`. The `.lnk` content must be updated in case of a different name.\n```powershell\niex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/lnls-sirius/pydm-opi/master/miscellaneous/windows/Create-Shortcut.ps1'));\n```\n\nRun\n---\nTo launch the main window use the script: `sirius-hla-as-ap-conlauncher.py`.\n\nOn Windows make sure that the correct `python.exe` or `pythonw.exe` is the default program for `*.py` files.\n\n```powershell\npythonw.exe (Get-Command sirius-hla-as-ap-conlauncher.py).Path\npythonw.exe (Get-Command sirius-hla-as-va-vbc.py).Path\n```\n\n# 2.4.1 - Sprint 15\n\n- UPDATE: Merge PR beaglebones\n- FIX: Check Python version before using `dataclasses` (required 3.7+)\n\n# 2.4.0 - Sprint 15\n\n- FIX: agilent4uhv details table crash.\n- FIX: regatron alarm tree view with broken PV names.\n- NEW: Central logging module `logging.py`.\n- NEW: Include CODEOWNERS file.\n- NEW: Include `siriushlacon_launcher`; usage of setup entrypoints.\n- UPDATE: Center MKS ans Agilent table labels.\n- UPDATE: Custom PyDMAppliacation instance using `sirius-hla-as-ap-generic-launcher` entrypoint instead of `pydm`.\n- UPDATE: Widgets and generic components into `widgets/`.\n- UPDATE: launcher img layout.\n",
"bugtrack_url": null,
"license": "GNU GPLv3",
"summary": "Client Applications for Sirius",
"version": "2.7.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4c44c19684cc216aab44d2ccb398c498a8dade7eaa40928349ee4f249865199d",
"md5": "d052d83db4555764c0632e2d0d5da536",
"sha256": "16c22107eaa426d0c682597f10ff403c8eec1ba1705078f27160f5bcec9dff8c"
},
"downloads": -1,
"filename": "siriushlacon-2.7.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d052d83db4555764c0632e2d0d5da536",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2717772,
"upload_time": "2023-03-16T19:20:33",
"upload_time_iso_8601": "2023-03-16T19:20:33.270280Z",
"url": "https://files.pythonhosted.org/packages/4c/44/c19684cc216aab44d2ccb398c498a8dade7eaa40928349ee4f249865199d/siriushlacon-2.7.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eb9b3cd1091f5da976e6011305112418a0858593e1fb27ff1fd8ca363b8b388c",
"md5": "83fd4d6f0493ec668ace89c796dd4726",
"sha256": "c0c0f829048ea4e189e368db44886e74df643b56d7505ff88e4bf504e7b06b87"
},
"downloads": -1,
"filename": "siriushlacon-2.7.2.tar.gz",
"has_sig": false,
"md5_digest": "83fd4d6f0493ec668ace89c796dd4726",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2624867,
"upload_time": "2023-03-16T19:20:35",
"upload_time_iso_8601": "2023-03-16T19:20:35.621756Z",
"url": "https://files.pythonhosted.org/packages/eb/9b/3cd1091f5da976e6011305112418a0858593e1fb27ff1fd8ca363b8b388c/siriushlacon-2.7.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-16 19:20:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "lnls-sirius",
"github_project": "pydm-opi",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "siriushlacon"
}