odlgroup / odl

Operator Discretization Library https://odlgroup.github.io/odl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FanBeam and FanFlat geometry error

NovinceNO1 opened this issue · comments

Hello, @adler-j . I tried to run the following code with ODL in ubuntu 16.04 with python3.6. The original geometry I find in your public code for Learned Primal Dual used was FanFlat, which is now not an available attribute, so I changed it into FanBeam, but the error shown in the attached picture occurred. I am not sure how to solve it. Appreciate it if you can offer any advice!

#############################
import numpy as np
import odl
size = 512
space = odl.uniform_discr([-128, -128], [128, 128], [size, size],
dtype='float32')
angle_partition = odl.uniform_partition(0, 2 * np.pi, 60)
detector_partition = odl.uniform_partition(-360, 360, 736)
geometry = odl.tomo.FanFlatGeometry(angle_partition, detector_partition,
src_radius=500, det_radius=500)
ray_trafo = odl.tomo.RayTransform(space, geometry)

#############################

4821623854391_ pic_hd

'odl.tom' has no attribute 'FanFlatGeometry'