Metadata-Version: 2.1
Name: sqil-core
Version: 0.0.1
Summary: The codebase of the SQIL group in EPFL
Author: Andrea Duina
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: h5py (>=3.12.1,<4.0.0)
Requires-Dist: isort (==5.9.3)
Requires-Dist: matplotlib (>=3.9.3,<4.0.0)
Requires-Dist: numpy (>=2.2.0,<3.0.0)
Requires-Dist: scipy (>=1.14.1,<2.0.0)
Requires-Dist: seaborn (>=0.13.2,<0.14.0)
Description-Content-Type: text/markdown

# For users

## Installation

```bash
$ pip install sqil_core
```

## Usage

You can find all the functions available and examples in the documentation.

```python
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'])
```

# For developers

## Development

1. **Install poetry if you haven't already**
```bash
$ pip install poetry
```

2. **Install the required packages using poetry**
```bash
$ poetry install
```

3. **Install the pre-commit hooks**
If you are on windows you need to install git ([https://git-scm.com/downloads](here)) and add it to your windows PATH.
After the installation open a new terminal.
```bash
$ 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.

4. **Start the virtual environment**
```bash
$ poetry shell
```
To exit the virtual environment just use `exit`

#### Test your changes

```bash
$ pip install -e . --user
```

**Anaconda**
If you want to install in a specific anaconda environment

- from your poetry shell build the package

```bash
$ 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

```bash
$ pip install PATH_TO_SQIL_CORE_FOLDER/dist/SQIL_CORE-VERSION.whl
```

If you're using a jupyter notebook remember to restart the kernel

## Build

```bash
$ poetry run build
```

## Docs

Serve docs

```bash
$ poetry run docs_serve
```

Build docs

```bash
$ poetry run docs_build
```

