Performance and CachingΒΆ

All readers support automatic caching for improved performance.

import os
import time

import matplotlib.pyplot as plt

from pylimer_tools.io.extract_thermo_data import extract_thermo_params

# Read complete log file
log_file = os.path.join(
    os.getcwd(),
    "../..",
    "tests/pylimer_tools/fixtures/log.lammps",
)

time_start = time.time()

extract_thermo_params() is a more elaborate version of read_log_file()

plot performance caching

Total running time of the script: (0 minutes 0.042 seconds)

Gallery generated by Sphinx-Gallery