Skip to main content

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

  1. Install poetry if you haven't already
$ pip install poetry
$ pip install poetry-plugin-shell
  1. Install the required packages using poetry
$ poetry install
  1. 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.

  1. 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

sqil_core-1.0.0.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

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

sqil_core-1.0.0-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

Details for the file sqil_core-1.0.0.tar.gz.

File metadata

  • Download URL: sqil_core-1.0.0.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sqil_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 af7ab18da9f29aabc702adec2d2931b7c7d1ff5d1df3398ff40076ff727842a9
MD5 e90ded4ebb57ba8379f64579da8bec90
BLAKE2b-256 aaf9d803cf6a85e50c7bd82a2ac8fcb79209b0c0ee473cf84ddc9a8504e9aa71

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqil_core-1.0.0.tar.gz:

Publisher: release.yml on SQIL-EPFL/sqil-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sqil_core-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sqil_core-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 84.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sqil_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a92463c693b27ef09719441a32da2051dc5b50c392da29e3d3b43a9da48d42d5
MD5 7cd6ce521bdf432ce8dc890d9f06f677
BLAKE2b-256 7b942778a2bca301f7ad88a36bcc491afb8a9501c5c442b20732942a12dfc86c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sqil_core-1.0.0-py3-none-any.whl:

Publisher: release.yml on SQIL-EPFL/sqil-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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