Skip to content

Commit

Permalink
remove image
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Jan 15, 2025
1 parent d848caa commit 87802bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
linkcode_blob = html_context['github_version']
linkcode_link_text = '[source]'
default_role = 'py:obj'

pygments_style = 'default'

def get_lambda_source(obj):
"""Convert lambda to source code."""
Expand Down Expand Up @@ -285,6 +285,9 @@ def sync_notebooks(source_folder, dest_folder):
else:
print(f'Existing {dest_file}. Skipping execution.')
mode = 'off'
if os.environ.get('NORUN') == '1':
print("NORUN: Skipping execution.")
mode = 'off'
content = nbformat.read(dest_file, as_version=nbformat.NO_CONVERT)
content.metadata['mystnb'] = {'execution_mode': mode}
nbformat.write(content, dest_file)
Expand Down
6 changes: 3 additions & 3 deletions examples/notebooks/cartesian_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -767,16 +767,16 @@
" n_iterations=8,\n",
")\n",
"idat_us_sense = sense_recon_us(kdata_us)\n",
"show_images(idat_us.rss().squeeze(), idat_us_sense.rss().squeeze(), titles=['Direct Reconstruction', 'Iterative SENSE'])"
"show_images(idat_us_sense.rss().squeeze(), titles=['Iterative SENSE'])"
]
},
{
"cell_type": "markdown",
"id": "53",
"metadata": {},
"source": [
"More information about the iterative SENSE reconstruction and its implementation in MRpro can be found in the examples\n",
"<project:iterative_sense_reconstruction_radial2D.ipynb> and\n",
"This looks better! More information about the iterative SENSE reconstruction and its implementation in MRpro\n",
"can be found in the examples <project:iterative_sense_reconstruction_radial2D.ipynb> and\n",
"<project:iterative_sense_reconstruction_with_regularization.ipynb>."
]
}
Expand Down
6 changes: 3 additions & 3 deletions examples/scripts/cartesian_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def show_images(*images: torch.Tensor, titles: list[str] | None = None) -> None:
n_iterations=8,
)
idat_us_sense = sense_recon_us(kdata_us)
show_images(idat_us.rss().squeeze(), idat_us_sense.rss().squeeze(), titles=['Direct Reconstruction', 'Iterative SENSE'])
show_images(idat_us_sense.rss().squeeze(), titles=['Iterative SENSE'])
# %% [markdown]
# More information about the iterative SENSE reconstruction and its implementation in MRpro can be found in the examples
# <project:iterative_sense_reconstruction_radial2D.ipynb> and
# This looks better! More information about the iterative SENSE reconstruction and its implementation in MRpro
# can be found in the examples <project:iterative_sense_reconstruction_radial2D.ipynb> and
# <project:iterative_sense_reconstruction_with_regularization.ipynb>.

0 comments on commit 87802bf

Please sign in to comment.