Skip to main content

TDK Lambda PSU Diagnostic Package

Project description

TDKLambda_PSU_Interface

Interface and diagnostic tests for the TDK Lambda PSU Z+ series

Clone repository

cd <path-to-directory>
git clone git@gitlab.com:pass-testing-solutions/tdklambda_psu_interface.git
cd tdklambda_psu_interface.git
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

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

pts_tdk_lambda_psu-0.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

pts_tdk_lambda_psu-0.0.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pts_tdk_lambda_psu-0.0.3.tar.gz.

File metadata

  • Download URL: pts_tdk_lambda_psu-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pts_tdk_lambda_psu-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9f865e0fdeda123907246b023d298c29d0a0e6731cf78cd3610c2cc1e06b7f62
MD5 385f2fe60be6dead1608941a7f18217c
BLAKE2b-256 922c6293f73586cb71b69393298f1e50df58754e4e30cddee5bb6a1a93c7af86

See more details on using hashes here.

File details

Details for the file pts_tdk_lambda_psu-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pts_tdk_lambda_psu-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56c60d75dc95eb521119f4b228a25427d117f6785f0a38bf7497e29fe65756e0
MD5 5ef2549ceadc754f20831552906804dc
BLAKE2b-256 ed5d914784dfcd80d3abcb9ff863869ecc81efdc4b819b62dd5290b134b198b8

See more details on using hashes here.

Supported by

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