Skip to main content

FUG HV Power Supply

Interface to the FUG HV Power Supply source

Clone repository

cd <path-to-directory>
git clone git@gitlab.com:pass-testing-solutions/fug-power-supply.git
cd fug-power-supply/
git pull origin main
git checkout -b <your-new-branch>  # Please follow the branch naming convention as mentioned in the coding guidelines

Virtual environment on MacOS

1. Virtualenvwrapper

You can install virtualenv and virtualenvwrapper with:

pip3 install virtualenv
pip3 install virtualenvwrapper
mkdir ~/.virtualenvs
# Might need to query where the virtualenv and virtualenvwrapper.sh are
which virtualenv
which virtualenvwrapper.sh
which python3

Add these lines in the ~/.zshrc file

# Setting PATH for Python 3 installed by brew
export PATH=<path-to-your-python3>:$PATH

# Configuration for virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=<path-to-your-python3>
export VIRTUALENVWRAPPER_VIRTUALENV=<path-to-your-virtualenv>
source <path-to-your-virtualenvwrapper.sh>

source $ZSH/oh-my-zsh.sh

Make sure to save these changes in your file and close your terminal for them to take effect. Now you can create a virtual environment by simply typing:

mkvirtualenv <name-of-your-virtual-env>
cd <your-git-repository>
workon <name-of-your-virtual-env>
deactivate <name-of-your-virtual-env>

To add the correct interpreter for your repository on PyCharm:

- PyCharm IDE > Preferences > Project > Python Interpreter
- Select the 'Add' button for interpreters
- Choose the 'Existing environments' in 'Virtualenv'
- Add the python3 file from /bin/ of your venv folder
E.g. - .virtualenvs/demo_repo_venv/bin/python3

After setting up the venv for the repo please install all the requirements and allow some time for the IDE to do indexing. If your repository has a requirements.txt:

pip3 install -r requirements.txt

2. Pipenv

Install pipenv

pip3 install pipenv 
# or
brew install pipenv

pipenv shell         # will create a virtualenv for the project
pipenv install       # will install dependencies for the repo from the Pipfile and Pipfile.lock

# Install any further packages in this environment as

pipenv install rich  # rich is a python library to nicely print on terminal

Your pipenv environment will be in the ~./virtualenvs folder. Make sure to add the interpreter on your IDE if not automatically added by navigating to the virtualenv folder for your repo and selecting the correct python3 file from /bin/.


Maintainers

Maintainers: @julianpass and @shuparnadeb_pts

Release files for pts-fug-hvpsu 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pts-fug-hvpsu 0.1.4
File Size Uploaded
pts_fug_hvpsu-0.1.4.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pts-fug-hvpsu 0.1.4
File Interpreter ABI Platform
pts_fug_hvpsu-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / pts_fug_hvpsu-0.1.4.tar.gz

Download URL pts_fug_hvpsu-0.1.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8292ad3f1443204bb4dc54eaf6e8963478588077a7a06a6aa4314d23bd26e239
BLAKE2b-256 checksum
How to use checksums
1fe0e5c6b6e1aa5112133d7996d1d88379f1d60b82732471ad7fe74e1d492f97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.19 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release files / pts_fug_hvpsu-0.1.4-py3-none-any.whl

Download URL pts_fug_hvpsu-0.1.4-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62a221f82b7badf1f820a1d95ea7e880753e2b9d60576eb7a3dc8e0d220a80c2
BLAKE2b-256 checksum
How to use checksums
75d0ab06d66211f8c9b0bc5f5f3af69b338a68820bf08d4219e294a0ef48b5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.19 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page