- Notifications
You must be signed in to change notification settings - Fork0
SQIL-EPFL/sqil-core
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
$ pip install sqil_core
You can find all the functions available and examples in the documentation.
importsqil_coreassqilpath='path to your data folder'# Extract datamag,phase,freq=sqil.extract_h5_data(path, ['mag_dB','phase','ro_freq'])
You can find the documentation for this packagehere
- Install poetry if you haven't already
$ pip install poetry$ pip install poetry-plugin-shell
- Install the required packages using poetry
$ poetry install
- Install the pre-commit hooksIf you are on windows you need to install git (https://git-scm.com/downloads) and add it to your windows PATH.After the installation open a new terminal.
$ poetry run pre-commit install
This will check if your python files are formatted correctly when you try to commit.If that's not the case the commit will be canceled and the files will be automatically formatted.Then you'll have to add and commit again the new files.
- Start the virtual environment
$ poetry shell
To exit the virtual environment just useexit
$ pip install -e. --user
AnacondaIf you want to install in a specific anaconda environment
- from your poetry shell build the package
$ poetry run build
- open an anaconda shell
- activate the desired environemnt
- pip install the wheel file (.whl) in the dist folder of the sqil-core project
$ pip install PATH_TO_SQIL_CORE_FOLDER/dist/SQIL_CORE-VERSION.whl
If you're testing a new function remember to import it in the folder's__init__.py
file.
If you're using a jupyter notebook remember to restart the kernel.
$ poetry run build
To publish version X.X.X run the commands below. This will trigger a GitHub action that deploys to release to PyPi (pip) and GitHub.Remember also to change the version number in thepyproject.toml
file.
$ git tag vX.X.X$ git push origin vX.X.X
Serve docs
$ poetry run docs_serve
Build docs
$ poetry run docs_build
About
The codebase for the Superconducting Quantum Information Laboratory in EPFL