$ pip install sqil_coreYou 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'])You can find the documentation for this package here
- 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 installThis 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 shellTo exit the virtual environment just use exit
$ pip install -e . --userAnaconda 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.whlIf 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 buildTo 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.XServe docs
$ poetry run docs_serveBuild docs
$ poetry run docs_build