Skip to main content

Client Applications for Sirius developed in PyDM by CONS

Project description

CONS OPIs

This repo should contain every PyDM OPI developed by the CONS group currently in use.

Read the docs !

Requirements

Python>=3.6 .
PyDM==1.10.1
CONS commons module.
Other dependencies are listed at requirements.txt.

Install

This repository depends on PyDM, PyEPICS, CONS Common and Python>=3.6 .

Clone from master or download the latest release.
Optionally the user may clone recursive in order to pull the module conscommon. If so, install the submodule using cd cons-common && pip install ..

EPICS Base

Install EPICS and add it to PATH(Windows only)

https://epics.anl.gov/download/distributions/EPICSWindowsTools1.44-x64.msi

For linux users the recommended way is to compile the latest LTS release of the EPICS Base (R3.15.8). After the compilation is completed, the bin folder must be added to the environment PATH and the lib folder to LD_LIBRARY_PATH.

Sirius Environment

To install in a machine managed by lnls-sirius/lnls-ansible clone the repo recursively and make install as sudo.

cd ~/ && git clone --recursive https://github.com/lnls-sirius/pydm-opi && cd pydm-opi && sudo make install

Using Conda

This is the recommended way to install ! If you're a Windows user, using git bash may simplify the steps as the syntax will be similar.

Create and activate the conda environment:

conda init <shell name> # Restart shell after ... (bash, powershell, etc...)
conda create --name pydm python=3.7 # pyqtgraph==0.1.0 does not work with python 3.8
conda activate pydm

Install dependencies and OPIs (Will use ~/ as the default path but feel free to change):

# Install PyDM (If on Windows `wget` and `tar` may not be available, just download the file using a browser and extract it)
wget https://github.com/slaclab/pydm/archive/v1.10.1.tar.gz
tar -zxvf v1.10.1.tar.gz && rm -f v1.10.1.tar.gz && cd pydm-1.10.1 && pip install . && cd ..

# Install pydm-opi and cons-common
cd ~/ && git clone --recursive https://github.com/lnls-sirius/pydm-opi && cd pydm-opi
cd ~/pydm-opi/cons-common && pip install . && cd ../ && pip install . -r requirements.txt

Desktop

In order to install the .desktop launcher:

make install-files

If using conda, remember to fix the Exec entry at the `.desktop' file accordingly:

/bin/bash -c 'source ~/miniconda3/etc/profile.d/conda.sh && conda activate pydm && sirius-hla-as-ap-conlauncher.py'

Run

All scripts used to start the applications should be at the bin folder relative to the python installation environment, for example:

~/.local/bin
/usr/local/bin
...

To launch the main window use the script: sirius-hla-as-ap-conlauncher.py

Windows

There should be no problems running on windows.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

siriushlacon-1.5.7.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

siriushlacon-1.5.7-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file siriushlacon-1.5.7.tar.gz.

File metadata

  • Download URL: siriushlacon-1.5.7.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for siriushlacon-1.5.7.tar.gz
Algorithm Hash digest
SHA256 e1fcee986e3aa376c11696218bbe41f15ef67b0961c55d36a2c6c042bfa16ec7
MD5 19d7149c106957595625423bf6d821c8
BLAKE2b-256 d09ee94da1aee38599327188cad94ebff6558002df7c199becd812fc2d59a912

See more details on using hashes here.

File details

Details for the file siriushlacon-1.5.7-py3-none-any.whl.

File metadata

  • Download URL: siriushlacon-1.5.7-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for siriushlacon-1.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 181895d449279bddb53d29d061500758a742ba543654d3f94455936843254b56
MD5 fb2677fe79e093a37fc8482ea79ff3f6
BLAKE2b-256 bdce1a1dbc8877495458a2b4a511855575e8d93b9881eebcfdfbf96dffd8d6e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page