Skip to content

Commit

Permalink
Merge pull request #54 from decarlof/master
Browse files Browse the repository at this point in the history
adding warning message when theta is generated automatically because …
  • Loading branch information
decarlof committed Jul 14, 2017
2 parents d93f2f5 + 23fd6b0 commit 809a649
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dxchange/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def read_aps_32id(fname, exchange_rank=0, proj=None, sino=None, dtype=None):

if (theta is None):
theta_size = dxreader.read_dx_dims(fname, 'data')[0]
logger.warn('Generating "%s" [0-180] deg angles for missing "exchange/theta" dataset' % (str(theta_size)))
theta = np.linspace(0. , np.pi, theta_size)
else:
theta = theta * np.pi / 180.
Expand Down

0 comments on commit 809a649

Please sign in to comment.