File size: 1,295 Bytes
124701c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
"""
Cannabis Licenses | Management
Copyright (c) 2022 Cannlytics
Authors:
Keegan Skeate <https://github.com/keeganskeate>
Created: 9/29/2022
Updated: 9/29/2022
License: <https://huggingface.co/datasets/cannlytics/cannabis_licenses/blob/main/LICENSE>
"""
# Standard imports.
import argparse
def aggregate():
"""Aggregate all subsets into a single data file."""
# TODO: Implement!
raise NotImplementedError
def upload():
"""Upload all data files and create dynamic links."""
# TODO: Implement!
raise NotImplementedError
# === Support command line usage. ===
if __name__ == '__main__':
# Get command line arguments.
try:
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument(
'--aggregate',
dest='aggregate',
action=argparse.BooleanOptionalAction,
)
arg_parser.add_argument(
'--upload',
dest='upload',
action=argparse.BooleanOptionalAction,
)
args = arg_parser.parse_args()
except SystemExit:
args = {}
# Perform specified action, otherwise aggregate and upload.
if args.get('aggregate'):
aggregate()
elif args.get('upload'):
upload()
else:
aggregate()
upload()
|