Python Script for Generating loggTeff Graphs

This Python script uses argparse for command-line argument parsing to generate loggTeff graphs, primarily intended for testing. It includes functionalities to accept a file path and an optional output path for saving the generated figure. The script checks for the '.iso' extension in the input path and utilizes a custom load function to process the data.

from load import load
import argparse
 
 
 
if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Generate a loggTeff Graph for testing")
    parser.add_argument("path", help="path to file", type=str)
    parser.add_argument("-o", "--output", help="path to save figure", type=str)
 
    args = parser.parse_args()
 
    assert ".iso" in args.path
    data, metadata = load(args.path)