This repository contains scripts for getting your source and derived fluoroscopic image data to and from our XNAT RPACS server.
-
You will need to register with XNAT and then be added as a member to the RPACS XNAT server by the Data Librarian.
- Make sure that you register a new account with your HawkID.
- You must be using your VPN when you access the link included in the invitation email!
-
NOTE: the SSL certificate for our accounts seems to require an annual renewal. It was most recently requested for renewal as of 2025-03-04.
If you only need to use the software and do not plan to contribute changes, follow these steps:
-
Open a command prompt/terminal.
-
Ensure that git is installed on your machine:
git --version
- If you get an error, install git (for Windows, go here).
-
Ensure that Python 3.8 (64-bit) is installed:
python --version
- If Python 3 is not installed, download Python 3.8.
- If you have both Python 2 and Python 3 installed, use
python3instead.
-
Navigate to your preferred directory:
cd path_to_my_fav_local_folder_for_storing_repositories_of_code -
Clone the repository:
git clone https://github.com/domattioli/XNAT-Interact.git
-
Navigate into the cloned directory:
cd XNAT-Interact -
Create and activate a virtual environment:
python -m venv .my_venv_for_xnat_interact
Activate the virtual environment:
- Windows:
.my_venv_for_xnat_interact\Scripts\activate
- Unix (Mac/Linux):
source .my_venv_for_xnat_interact/bin/activate
- Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run a test to verify correct installation:
python update_and_test.py
If you want to make changes to the code and push them to GitHub, follow these steps instead:
-
Fork this repository:
- Go to XNAT-Interact on GitHub.
- Click the Fork button (top right) to create your own copy of the repository.
-
Clone your forked repository (replace
YOUR-USERNAMEwith your GitHub username):git clone https://github.com/YOUR-USERNAME/XNAT-Interact.git
-
Navigate into the directory:
cd XNAT-Interact -
Set the upstream remote (so you can sync with the original repo later):
git remote add upstream https://github.com/domattioli/XNAT-Interact.git
-
Create and activate a virtual environment (same as in Option 1).
-
Create a new branch for your changes:
git checkout -b my-feature-branch
-
Make your changes and commit them:
git add . git commit -m "Describe the changes you made"
-
Push your changes to your fork:
git push origin my-feature-branch
-
Create a pull request:
- Go to your fork on GitHub (
https://github.com/YOUR-USERNAME/XNAT-Interact). - Click "Compare & pull request".
- Select:
- Base repository:
domattioli/XNAT-Interact - Base branch:
main - Head repository:
YOUR-USERNAME/XNAT-Interact - Head branch:
my-feature-branch
- Base repository:
- Add a description and click "Create pull request".
- Go to your fork on GitHub (
🚧 Note: This installation method is not yet implemented. Future versions of this repository may support installation via pip. 🚧
- This will require setting up the environment.yaml github workflow, I think.
Once available, you will be able to install XNAT-Interact directly using:
pip install XNAT-Interact- If you are not running the following code from a university machine, you must be logged into the UIowa Cisco VPN before running any commands.
- Note: You cannot go back once you begin one of the tasks (e.g., uploading a case). If you make a mistake, press Ctrl + C to exit and restart the task.
python update_and_test.py