Skip to content

Commit

Permalink
[revert] Issue #10, PV5.1 subject position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dvm-shlee committed Jul 24, 2020
1 parent 0d8dc6c commit eaa6db0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions brkraw/lib/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,13 +1014,16 @@ def _get_affine(self, visu_pars, method):
orient_info = self._get_orient_info(visu_pars, method)
slice_orient_map = {0: 'sagital', 1: 'coronal', 2: 'axial'}
num_slice_packs = slice_info['num_slice_packs']
version = get_value(visu_pars, 'VisuVersion')
if version == 1: # PV 5.1 required the position correction
subj_pose = orient_info['subject_position']
else: # PV 6.01 does not
subj_pose = None
subj_pose = orient_info['subject_position']
subj_type = orient_info['subject_type']

## Rollback below changes upon comment on issue #10
# version = get_value(visu_pars, 'VisuVersion')
# if version == 1: # PV 5.1 required the position correction
# subj_pose = orient_info['subject_position']
# else: # PV 6.01 does not
# subj_pose = None

if num_slice_packs > 1:
affine = []
for slice_idx in range(num_slice_packs):
Expand Down

0 comments on commit eaa6db0

Please sign in to comment.