Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Jan 8, 2025
1 parent e00b6a7 commit 6606672
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/cartesian_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
# acquired on a Cartesian grid but with partial echo and partial Fourier acceleration. Finally, we will reconstruct a
# Cartesian scan with regular undersampling using iterative SENSE.

# %% [markdown]
# ## Import MRpro and download data

# %% tags=["hide-cell"]
# Get the raw data from zenodo
Expand All @@ -30,7 +28,8 @@
print(f.name)

# %% [markdown]
# We have three different scans obtained from the same object with the same FOV and resolution:
# We have three different scans obtained from the same object with the same FOV and resolution, saved as ISMRMRD
# raw data files (*.mrd):
#
# - cart_t1.mrd is a fully sampled Cartesian acquisition
#
Expand All @@ -42,7 +41,7 @@
# %% [markdown]
# ## Read in raw data and explore header
#
# To read in an ISMRMRD raw data file (*.mrd), we can simply pass on the file name to a `KData` object.
# To read in an ISMRMRD raw data file (*.mrd), we can simply pass on the file name to a {py:class}`KData` object.
# Additionally, we need to provide information about the trajectory. In MRpro, this is done using trajectory
# calculators. These are functions that calculate the trajectory based on the acquisition information and additional
# parameters provided to the calculators (e.g. the angular step for a radial acquisition).
Expand All @@ -58,7 +57,7 @@

# %% [markdown]
# Now we can explore this data object.
# Simply calling ``print(kdata)``` gives us a basic overview of the KData object.
# Simply calling ``print(kdata)`` gives us a basic overview of the `KData` object.

# %%
print(kdata)
Expand Down Expand Up @@ -168,7 +167,6 @@
# This is because MRpro saves the trajectory in the most efficient way.
# To get the full trajectory as a tensor, we can just call as_tensor().


# %%
# Plot the fully sampled trajectory (in blue)
plt.plot(kdata.traj.as_tensor()[2, 0, 0, :, :].flatten(), kdata.traj.as_tensor()[1, 0, 0, :, :].flatten(), 'ob')
Expand Down

0 comments on commit 6606672

Please sign in to comment.