Skip to content

feat: Add function timing using timeit (!8)

Matthew Feickert requested to merge feat/add-better-timing into main
  • Move the time testing part of test_PHYSLITE.py into "__main__" guards and place the operations to be timed in individual functions. This is done to enable support for using the timeit module.
  • Add function_timer.py which imports the functions and in doing so runs all the code exists in the housing module "test_PHYSLITE.py" that isn't defined in a function or scope guarded. This provides the setup environment to then run timeit.timeit for the functions of interest by passing them as callables to timeit.timeit.
  • Add __pycache__ to .gitignore.
Edited by Matthew Feickert

Merge request reports