Skip to content

Commit

Permalink
add options to new cloudmask test
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Oct 4, 2023
1 parent 6da4b38 commit 5995bf7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions benchmarks/cloudmask/target/greene_v0.5/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pyyaml
awscli
cloudmesh-common
cloudmesh-ee
docopts
seaborn
# git+https://github.com/mlperf/[email protected]
git+https://github.com/mlperf/[email protected]
23 changes: 22 additions & 1 deletion benchmarks/cloudmask/target/greene_v0.5/slstr_uva_nyu_cloud.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Usage:
slstr_uva_nyu_cloud.py [--debug]
Options:
--debug Execute the debug function.
-h, --help Show this help message and exit.
If no parameters are provider the main function is executed
"""
#
# slstr_cloud.py

Expand Down Expand Up @@ -446,5 +456,16 @@ def main():

StopWatch.benchmark(user=user_name)


def debug_function():
print("Debug function called")

if __name__ == "__main__":
main()
from docopt import docopt

arguments = docopt(__doc__)

if arguments['--debug']:
debug_function()
else:
main()

0 comments on commit 5995bf7

Please sign in to comment.