Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
89212c5
use petsird 0.7.2
gschramm Jul 14, 2025
065e0c2
update PETSIRD submodule to v0.7.2
gschramm Jul 14, 2025
c68d3d3
add petsird helpers v0.7.2 helpers to avoid submodules
gschramm Jul 14, 2025
6c8f740
add starting point for new simulator
gschramm Jul 14, 2025
778fb21
update readme
gschramm Jul 14, 2025
74bbb1f
remove copy of helpers
gschramm Jul 14, 2025
b02570e
remove submodule
gschramm Jul 14, 2025
cc1bd79
update writing of scanner geometry
gschramm Jul 15, 2025
341c283
add detector efficiencies, scanner info and petsird header
gschramm Jul 15, 2025
231157c
update writer
gschramm Jul 15, 2025
ad83c7d
use always numpy in generator
gschramm Jul 15, 2025
b61582b
add points phantom
gschramm Jul 15, 2025
b4d23cb
add support for writing multiple event blocks
gschramm Jul 16, 2025
8d01a84
clean up printing
gschramm Jul 16, 2025
c0edc38
start updating recon script
gschramm Jul 16, 2025
8826c7c
WIP recon script
gschramm Jul 16, 2025
cc4a66a
add checks
gschramm Jul 17, 2025
a9fc87a
add calculation of sensitivity image in recon script
gschramm Jul 17, 2025
da3190b
clean up + comments
gschramm Jul 17, 2025
fd19409
respect more than 1 energy bins in module pair effs
gschramm Jul 17, 2025
93875e7
read prompt events
gschramm Jul 17, 2025
8be854f
simply reading of prompts (not very efficient)
gschramm Jul 17, 2025
b21a4c6
finish recon script
gschramm Jul 17, 2025
2015786
clean up
gschramm Jul 17, 2025
f16f493
resturcture code into helper functions
gschramm Jul 17, 2025
b2a478d
move files
gschramm Jul 18, 2025
0a205ec
restructure code
gschramm Jul 18, 2025
1aaddd6
update env file and store data in data subfolder
gschramm Jul 18, 2025
1f0bf35
update README
gschramm Jul 18, 2025
8cfe3e6
clean up + verbose kwargs
gschramm Jul 18, 2025
62b315b
clean up of recon script
gschramm Jul 18, 2025
2ab247e
add comment
gschramm Jul 18, 2025
5652e39
WIP recon script
gschramm Jul 18, 2025
d63cdb9
fine tune simulation script
gschramm Jul 18, 2025
83cde4c
add tof/nontof option for sens. image calculation
gschramm Jul 21, 2025
7b7563f
load and compare to ref sens. image if it exists
gschramm Jul 21, 2025
9b6b7da
back-project bigger chunks when calculating the sens. image (better f…
gschramm Jul 21, 2025
47967fe
add xp kwarg to sens. img backprojection routine to allow cupy GPU pr…
gschramm Jul 21, 2025
96f687f
add auto estimation of image size (FOV)
gschramm Jul 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**/build/
**/__pycache__/
*.npy
.DS_Store

# Common editor backups
~$*
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
[submodule "PETSIRD"]
path = PETSIRD
url = https://github.com/ETSInitiative/PETSIRD
branch=main
1 change: 0 additions & 1 deletion PETSIRD
Submodule PETSIRD deleted from ae3a04
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
```
conda env create -f environment.yml
conda activate petsird-analytic-simulator
cd python
cd python-hackathon-2025
```

## Simulate petsird LM data
## Simulate petsird LM data (work in progress)

```
python 01_analytic_petsird_lm_simulator.py
Expand Down Expand Up @@ -43,7 +43,7 @@ python 01_analytic_petsird_lm_simulator.py -h
value > 0 is given via `--num_epochs_mlem`. Otherwise it is skipped to save
time.

## Run a listmode OSEM recon on the simulated
## Run a listmode OSEM recon on the simulated (work in progress)

```
python 02_lm_osem_recon_simulated_data.py
Expand Down
8 changes: 3 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: petsird-analytic-simulator
channels:
- conda-forge
- defaults
dependencies:
- h5py>=3.7.0
- ipykernel>=6.19.2
- numpy>=1.24.3
- python>=3.11.3
- matplotlib~=3.8.0
- matplotlib>=3.8.0
- parallelproj>=1.10.0
- pymirc>=0.29
- petsird~=0.2.1
- petsird~=0.7.2
- ipython
6 changes: 2 additions & 4 deletions python/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.bin
*.npy
tmp
my_lm_sim/*
data/*
.DS_Store
Loading
Loading