Cli Tac Interpolation#
Command-line interface (CLI) for interpolating Time-Activity Curves (TACs).
This module provides a CLI to interpolate TACs, enabling the conversion of these curves to a desired time scale. It uses argparse to handle command-line arguments.
- The user must provide:
Input TAC file path
Interpolation interval in minutes
Output TAC file path
This script uses functionalities from :mod:’petpal.tac_interpolation’ module to interpolate the TAC based on the specified interval, or number of samples before the maximum value, and save the interpolated TAC to a specified output file.
An option to print the interpolated TAC to screen is also provided for visual inspection of the results.
- Example usage:
- Using
petpal.cli_tac_interpolation.EvenlyInterpolate: petpal-tac-interpolation --input-tac-path /path/to/input.tac --output-tac-path /path/to/output.tac --delta-time 0.1
- Using
petpal.cli_tac_interpolation.EvenlyInterpolateWithMax: petpal-tac-interpolation --input-tac-path /path/to/input.tac --output-tac-path /path/to/output.tac --samples-before-max 4
- Using
See also
tac_interpolation - module for performing interpolation on PET TACs.
Todo
Refactor the reading and writing of TACs when IO module is mature.
Functions#
|
Writes time-activity curves (TAC) to a file. |
|
Prints the Time-Activity Curve (TAC) times and values to the console. |