Skip to content

Commit

Permalink
MLEM/example: updagred to Py3.9
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola VIGANO <[email protected]>
  • Loading branch information
Obi-Wan committed Dec 9, 2023
1 parent b568b66 commit c417300
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/example_10_synthetic_phantom_MLEM_vs_SIRT.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
# -*- coding: utf-8 -*-
"""
This example compares the MLEM solver against SIRT and weighted least-squares
reconstructions (implemented with the PDHG algorithm) of the Shepp-Logan phantom.
@author: Jérome Lesaint, ESRF - The European Synchrotron, Grenoble, France
"""

import matplotlib.pyplot as plt
import numpy as np
from numpy.typing import ArrayLike
from typing import Tuple

import matplotlib.pyplot as plt

import corrct as cct


try:
import phantom
except ImportError:
cct.testing.download_phantom()
import phantom


def cm2inch(x: ArrayLike) -> Tuple[float, float]:
def cm2inch(x: ArrayLike) -> tuple[float, float]:
"""Convert cm to inch.
Parameters
Expand Down

0 comments on commit c417300

Please sign in to comment.