Created
December 4, 2020 16:10
-
-
Save mastier/8b6a23b654bbccac149656264c028ebd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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