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: -e and -p are 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