Quick Start§
Install and add as a dependency to your project:
uv add git+https://gitlab.in2p3.fr/lisa-apc/typed-lisa-toolkit
Import TLT from python:
import typed_lisa_toolkit as tlt
(See Installation for other installation methods.)
Load Mojito data§
Mojito is a mock LISA data prepared by the DDPC. The downloading is handled by the mojito package. Downloaded data are expected to be processed by MojitoProcessor, which can then be loaded by TLT as follows:
import typed_lisa_toolkit as tlt
processd_data = ... # Process the downloaded Mojito data using MojitoProcessor
mojito_data = tlt.load_mojito(processd_data)
Load LDC data§
LDC stands for LISA Data Challenges, which are a series of simulated datasets designed by the LISA Consortium.
The format of the LDC datasets is defined in the package lisa-data-challenge. TLT provides loaders for the LDC datasets.
For instance, assuming you have exported the environment variable SANGRIA_TRAINING_DATA
pointing to the Sangria data path, you can load the data as follows:
import os
import pathlib
import typed_lisa_toolkit as tlt
sangria_data_path = pathlib.Path(os.environ.get('SANGRIA_TRAINING_DATA'))
sangria_data = tlt.load_sangria(sangria_data_path)