Spaces:
Paused
Paused
Add examples in argparse
Browse files- multigraph.py +7 -1
multigraph.py
CHANGED
@@ -38,7 +38,13 @@ def process(block, netuid=1, lite=True, difficulty=False, prune_weights=False, r
|
|
38 |
|
39 |
|
40 |
def parse_arguments():
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
parser.add_argument('--netuid', type=int, default=1, help='Network UID to use.')
|
43 |
parser.add_argument('--lite', action='store_true', help='Do not include weights.')
|
44 |
parser.add_argument('--difficulty', action='store_true', help='Include difficulty in metagraph.')
|
|
|
38 |
|
39 |
|
40 |
def parse_arguments():
|
41 |
+
example_usage = """
|
42 |
+
SN1 metagraphs for most recent 30 days without weights: python multigraph.py --lite --netuid 1 --step_size 7200 --num_blocks 30
|
43 |
+
SN0 metagraphs for most recent 12 hours with weights: python multigraph.py --lite --netuid 0 --step_size 300 --num_blocks 12
|
44 |
+
"""
|
45 |
+
parser = argparse.ArgumentParser(description=f'Process metagraphs for a given network.',
|
46 |
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
47 |
+
epilog=f'\nExamples:\n{example_usage}')
|
48 |
parser.add_argument('--netuid', type=int, default=1, help='Network UID to use.')
|
49 |
parser.add_argument('--lite', action='store_true', help='Do not include weights.')
|
50 |
parser.add_argument('--difficulty', action='store_true', help='Include difficulty in metagraph.')
|