From 89237a84f91c2204ee042e7282c52380e9672905 Mon Sep 17 00:00:00 2001 From: napakalas Date: Mon, 8 Dec 2025 14:29:20 +1300 Subject: [PATCH] promote.py: require ontology IDs for taxon and sex (#40). --- tools/promote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/promote.py b/tools/promote.py index 209ae4a..44d9a64 100644 --- a/tools/promote.py +++ b/tools/promote.py @@ -302,9 +302,9 @@ def main(): help='The destination server to promote flatmaps to.') parser.add_argument('--style', choices=['anatomical', 'functional'], default='anatomical', help='Style of flatmaps to promote.') - parser.add_argument('--taxon', choices=list(TAXON_IDENTIFIERS.values()), + parser.add_argument('--taxon', choices=list(TAXON_IDENTIFIERS.keys()), help='Only promote flatmaps for this taxon.') - parser.add_argument('--biological-sex', choices=list(BIOLOGICAL_SEX_IDS.values()), + parser.add_argument('--biological-sex', choices=list(BIOLOGICAL_SEX_IDS.keys()), help='Only promote flatmaps of this biological sex.') parser.add_argument('--promote', action='store_true', help='Promote flatmaps without confirmation.')