This release is a pre-release and may not be stable for production use.
Ifotools
Collection of useful interferometer functions.
PDF Documentation
A PDF with the overview of the functions and their docstring can be found:
https://ifosim.gitlab.io/ifotools/ifotools.pdf
Layout
The overall package is called ifotools, in which submodules(folders) can be
created. Every folder should have an __init__.py file inside (can be empty).
For now the suggestion is to put virgo related functions under
src/ifotools/virgo
examples should contain notebooks explaining how the functions can be used.
tests should contain pytest compatible tests (see
https://pytest-with-eric.com/ and
https://docs.pytest.org/en/stable/getting-started.html)
Optimally the folder structure in all three (src, tests, examples) should
be identical.
Installation
Clone the repository
git clone git@gitlab.com:ifosim/ifotools.git
cd ifotools
Conda (prefered)
Install via pip in any conda/python environment.
conda create -n ifotools --file environment.yml
pip install -e . --no-deps --no-build-isolation
Pip
pip install -e .[test,lint,dev]
SSH keys
The above requires you to have an ssh key added to your gitlab account:
- https://gitlab.nikhef.nl/-/user_settings/ssh_keys
- https://docs.gitlab.com/user/ssh/#what-are-ssh-keys
Alternatively you can do
git clone https://gitlab.com/ifosim/ifotools.git
But you may have to enter your username and password when pushing and pulling.
To test:
python -c 'import ifotools'
Updating
Just run
git pull
in the repo root folder and it should update.
Where to add code
You can just add python files in src/ifotools. You can also add folders, as
long as they have an __init__.py inside.
Imports
It would be cleanest to use absolute imports inside the package e.g.
from ifotools.sympy_helpers import print_expression_eval
and not
from .sympy_helpers import ****
Formatting and linting
It is a good habit to use ruff (pip install ruff/conda install -c conda-forge ruff) and run:
ruff check --fix my_file.py
ruff format my_file.py
This will help you spot common mistakes and format all files in the same way.
VS code can automate this by adding the following to your workspace settings
{
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
},
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
"notebook.source.fixAll": "explicit",
"notebook.source.organizeImports": "explicit"
},
}
Dependencies
Dependencies are listed in the pyproject.toml. There is a conda environment.yml file which can be generated from the pyproject.toml file via python scripts/generate_environment_files.py. Please make sure they keep in sync.
Metadata
Release files for ifotools 1.0a11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ifotools-1.0a11.tar.gz | 4.1 MB | Without provenance | Details for ifotools-1.0a11.tar.gz |
Release files / ifotools-1.0a11.tar.gz
| Download URL | ifotools-1.0a11.tar.gz |
|---|---|
| Size | 4.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a9505afbef181b1527bc07c1daca7075956295201ce9f5cbf6a6a5cea9777b1
|
|
BLAKE2b-256 checksum How to use checksums |
6cf81ec08d627a845be16c0013c1fb63766745b94b35f407d968b2bdbaccbe58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for ifotools 1.0a11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.