SESSIONMIRROR.PY(1)
β¨ NAME β¨
sessionmirror.py β download experiment from XNAT instances π«Ά
okay so bestie, this is a little script (a User Command, if we're being fancy π ) that grabs an experiment off one XNAT instance and yeets it over to another one. that's the whole vibe.
πΈ SYNOPSIS πΈ
sessionmirror.py [-h] --h1 SOURCE_CONFIG --h2 DEST_CONFIG -e
EXPERIMENT_ID -p PROJECT_ID [-v]
likeβ¦ you have to give it the two configs, the experiment, and the project. -v is optional because it's just for the extra chatter. periodt. π
π¦ DESCRIPTION π¦
Downloads a given experiment/session from an XNAT instance and uploads it to an independent one. Only DICOM resources will be imported.
fr fr, that's it β one XNAT in, one XNAT out, and only the DICOM stuff makes it through the door. everything else? not invited. π
π OPTIONS π
-h,--helpβ show this help message and exit. the classic. the icon. when in doubt, hit it. π--h1 SOURCE_CONFIG,--source_config SOURCE_CONFIGβ Source XNAT configuration file. this is where your stuff is coming from, so point it at the right file bestie, not your ex's config π--h2 DEST_CONFIG,--dest_config DEST_CONFIGβ Destination XNAT configuration file. and this one is where it's going to. two configs, two worlds, one mirror. β¨-e EXPERIMENT_ID,--experiment_id EXPERIMENT_IDβ Which resource to download? (Entity name/identifier). literally just tell it which one you want, by its entity name or identifier. don't be shy, be specific. π―-p PROJECT_ID,--project_id PROJECT_IDβ Which project to store the resource in. where does it live when it lands? here. you pick. π-v,--verboseβ Display verbosal information (optional). yes the manpage genuinely says "verbosal" and honestly? we respect the typo, it's got main character energy π. anyway it's optional, it just makes the script talk more. π£οΈπ¬
lowkey reminder:-eand-pare the ones that decide what moves and where it lands, so double-check those before you run anything. no takebacks, bestie. π«Ά
and that's the whole page, you ate it, congrats π this gem is sessionmirror.py version 1.16, dated October 2023 β so if you're reading this in the group chat era, that's the tea. go mirror some sessions, you've got this. ππ§π
π¦ where this page comes from
- debian trixie: python3-pyxnat 1.6.3-1 Β· BSD-3-Clause
- ubuntu noble: python3-pyxnat 1.6.2-1 Β· BSD-3-Clause
- ubuntu questing: python3-pyxnat 1.6.3-1
- ubuntu resolute: python3-pyxnat 1.6.4-1 Β· BSD-3-Clause
- ubuntu stonking: python3-pyxnat 1.6.4-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms