文件
gprMax/gprMax/__main__.py

18 行
443 B
Python

"""gprMax.__main__: executed when gprMax directory is called as script."""
import gprMax.gprMax
if __name__ == "__main__":
gprMax.gprMax.cli()
# Code profiling
# Time profiling
# import cProfile, pstats
# cProfile.run('gprMax.gprMax.main()','stats')
# p = pstats.Stats('stats')
# p.sort_stats('time').print_stats(25)
# Memory profiling - use in gprMax.py
# from memory profiler import profile
# add @profile before function to profile