Skip to content
Merged

0.4.6 #164

Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- 0.4.6
- Small bugfixes
- restrict pypulseq dependency to < 1.5.0
- 0.4.5
- Fix: NIfTI loader supports `int` constants
- Fix: Empty tissue masks in `VoxelGridPhantom`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mrzero_core"
version = "0.4.5"
version = "0.4.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "mrzerocore"
version = "0.4.5"
version = "0.4.6"
description = "Core functionality of MRzero"
authors = [
{name = "Jonathan Endres", email = "jonathan.endres@uk-erlangen.de"},
Expand All @@ -21,7 +21,7 @@ dependencies = [
"ismrmrd",
"matplotlib>=3.5",
"pydisseqt>=0.1.13",
"pypulseq",
"pypulseq<1.5.0",
"requests>=2.20",
"scikit-image",
"scipy>=1.7",
Expand Down
4 changes: 2 additions & 2 deletions python/MRzeroCore/phantom/custom_voxel_phantom.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def generate_maps(self, props) -> list[torch.Tensor]:

kspaces = [torch.zeros(128, 128, dtype=torch.cfloat) for _ in range(len(props))]
# Iterate over all voxels and render them into the kspaces
for pos in self.voxel_pos:
for j, pos in enumerate(self.voxel_pos):
rot = torch.exp(-2j*pi * (trajectory @ pos))

for i in range(len(props)):
kspaces[i] += props[i] * (rot * dephasing).view(128, 128)
kspaces[i] += props[i][j] * (rot * dephasing).view(128, 128)

# FFT the rendered k-spaces to get the maps
norm = self.voxel_size[0] * self.voxel_size[1] # 2D plot, ignore thickness
Expand Down
Loading