#!/usr/bin/env python3 # pyright: reportUnusedCallResult=false from pathlib import Path from rich.logging import RichHandler from rich.pretty import pprint from logging import basicConfig, getLogger from warnings import filterwarnings from gettext import install from matplotlib.pyplot import figure, show from backscattering_analyzer import Experiment # pyright: ignore[reportMissingTypeStubs] from backscattering_analyzer.acquisition import AcquisitionType install(__name__) filterwarnings("error") basicConfig( level="INFO", format="%(message)s", datefmt="[%X]", handlers=[RichHandler()], ) logger = getLogger(__name__) experiment = Experiment( "2024_08_15", Path("/home/demagny/data"), Path("/home/demagny/data/simulation/optickle/transfer_function/O5.mat"), ) experiment.show(figure()) show() results = experiment.fit_projections() pprint(results)