Skip to content

Commit

Permalink
fix 2D origin (#1492)
Browse files Browse the repository at this point in the history
* fix 2D origin

* changelog
  • Loading branch information
gfardell authored Aug 2, 2023
1 parent 12e45d3 commit 1b20c53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Add norm for CompositionOperator.
- Refactor SIRT algorithm to make it more computationally and memory efficient
- Optimisation in L2NormSquared
- Fix for show_geometry bug for 2D data

* 23.0.1
- Fix bug with NikonReader requiring ROI to be set in constructor.
Expand Down
4 changes: 2 additions & 2 deletions Wrappers/Python/cil/utilities/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,12 @@ def display_detector(self):

#mark data origin
if 'right' in self.acquisition_geometry.config.panel.origin:
if 'bottom' in self.acquisition_geometry.config.panel.origin:
if self.ndim==2 or 'bottom' in self.acquisition_geometry.config.panel.origin:
pix0 = det[0]
else:
pix0 = det[3]
else:
if 'bottom' in self.acquisition_geometry.config.panel.origin:
if self.ndim==2 or 'bottom' in self.acquisition_geometry.config.panel.origin:
pix0 = det[1]
else:
pix0 = det[2]
Expand Down

0 comments on commit 1b20c53

Please sign in to comment.