You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
719 B
28 lines
719 B
#!/home/patrickd/swarms/swarmsenv/bin/python3.12
|
|
#
|
|
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
|
|
# Copyright (c) 2018-2024 The Uncertainty Quantification Foundation.
|
|
# License: 3-clause BSD. The full license text is available at:
|
|
# - https://github.com/uqfoundation/pox/blob/master/LICENSE
|
|
|
|
import pox.__main__
|
|
from pox.__main__ import *
|
|
__doc__ = pox.__main__.__doc__
|
|
|
|
|
|
if __name__=='__main__':
|
|
import sys
|
|
try:
|
|
func = sys.argv[1]
|
|
except: func = None
|
|
if func:
|
|
try:
|
|
exec('print(%s)' % func)
|
|
except:
|
|
print("Error: incorrect syntax '%s'\n" % func)
|
|
exec('print(%s.__doc__)' % func.split('(')[0])
|
|
else: help()
|
|
|
|
|
|
# End of file
|