Skip to content

Commit b65b830

Browse files
authored
Merge pull request #41 from napakalas/issue-#40
promote.py: require ontology IDs for taxon and sex.
2 parents 7128ee6 + 89237a8 commit b65b830

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/promote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ def main():
302302
help='The destination server to promote flatmaps to.')
303303
parser.add_argument('--style', choices=['anatomical', 'functional'], default='anatomical',
304304
help='Style of flatmaps to promote.')
305-
parser.add_argument('--taxon', choices=list(TAXON_IDENTIFIERS.values()),
305+
parser.add_argument('--taxon', choices=list(TAXON_IDENTIFIERS.keys()),
306306
help='Only promote flatmaps for this taxon.')
307-
parser.add_argument('--biological-sex', choices=list(BIOLOGICAL_SEX_IDS.values()),
307+
parser.add_argument('--biological-sex', choices=list(BIOLOGICAL_SEX_IDS.keys()),
308308
help='Only promote flatmaps of this biological sex.')
309309
parser.add_argument('--promote', action='store_true', help='Promote flatmaps without confirmation.')
310310

0 commit comments

Comments
 (0)