文件
gprMax/gprMax/__main__.py
2016-07-21 16:23:41 +01:00

18 行
444 B
Python

"""gprMax.__main__: executed when gprMax directory is called as script."""
import gprMax.gprMax
if __name__ == '__main__':
gprMax.gprMax.main()
# 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