Skip to content

Instantly share code, notes, and snippets.

@mastier
Created December 4, 2020 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastier/8b6a23b654bbccac149656264c028ebd to your computer and use it in GitHub Desktop.
Save mastier/8b6a23b654bbccac149656264c028ebd to your computer and use it in GitHub Desktop.
import argparse
def f(x):
print(x)
class Fusion:
"""
Performs TSDF fusion.
"""
def __init__(self):
"""
Constructor.
"""
parser = argparse.ArgumentParser(description='Process some stuff')
parser.add_argument(
'--blah', type=int, nargs='+',
help='an integer blah')
self.options = parser.parse_args()
def calc(self):
x = f(self.options.blah)
return x
if __name__ == '__main__':
app = Fusion()
result = app.calc()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment