The codebase of the SQIL group in EPFL
Project description
For users
Installation
$ pip install sqil_core
Usage
You can find all the functions available and examples in the documentation.
import sqil_core as sqil
path = 'path to your data folder'
# Extract data
mag, phase, freq = sqil.extract_h5_data(path, ['mag_dB', 'phase', 'ro_freq'])
Documentation
You can find the documentation for this package here
For developers
Development
- 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 hooks If 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 use exit
Test your changes
$ pip install -e . --user
Anaconda If 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.
Build
$ poetry run build
Publish
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 the pyproject.toml file.
$ git tag vX.X.X
$ git push origin vX.X.X
Docs
Serve docs
$ poetry run docs_serve
Build docs
$ poetry run docs_build
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqil_core-1.1.0.tar.gz.
File metadata
- Download URL: sqil_core-1.1.0.tar.gz
- Upload date:
- Size: 74.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9080e6c0c93331a0397b3d1553af3fcd2471b72be51a1879cd68b030109f4fd
|
|
| MD5 |
a034809bc8342c100c3c9e798aa87301
|
|
| BLAKE2b-256 |
b0e9d3bfdbe387936bbc84c6c40816b4d3897d3771e682a42d0fd33ee18e91c0
|
Provenance
The following attestation bundles were made for sqil_core-1.1.0.tar.gz:
Publisher:
release.yml on SQIL-EPFL/sqil-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqil_core-1.1.0.tar.gz -
Subject digest:
d9080e6c0c93331a0397b3d1553af3fcd2471b72be51a1879cd68b030109f4fd - Sigstore transparency entry: 307191036
- Sigstore integration time:
-
Permalink:
SQIL-EPFL/sqil-core@24b0a263995d3295a91c1464508cbcbcb96b5f62 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/SQIL-EPFL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@24b0a263995d3295a91c1464508cbcbcb96b5f62 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sqil_core-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sqil_core-1.1.0-py3-none-any.whl
- Upload date:
- Size: 86.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c802474639bb186cd254ff202b1e16aec0edf866b3814ccff58c9af35fbc8776
|
|
| MD5 |
fa35e49dd16207adb18dfb4661d8d982
|
|
| BLAKE2b-256 |
5c8c0345f7c770fdb1e6fb42e8bf9cbdae4e8daad183e4aa56595f7df26de27b
|
Provenance
The following attestation bundles were made for sqil_core-1.1.0-py3-none-any.whl:
Publisher:
release.yml on SQIL-EPFL/sqil-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sqil_core-1.1.0-py3-none-any.whl -
Subject digest:
c802474639bb186cd254ff202b1e16aec0edf866b3814ccff58c9af35fbc8776 - Sigstore transparency entry: 307191041
- Sigstore integration time:
-
Permalink:
SQIL-EPFL/sqil-core@24b0a263995d3295a91c1464508cbcbcb96b5f62 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/SQIL-EPFL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@24b0a263995d3295a91c1464508cbcbcb96b5f62 -
Trigger Event:
push
-
Statement type: