Skip to content

Commit

Permalink
[bug patch] #12 Rescale issue on PV5
Browse files Browse the repository at this point in the history
  • Loading branch information
dvm-shlee committed Jun 25, 2020
1 parent b725561 commit cfebb20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions brkraw/lib/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ def _set_nifti_header(self, niiobj, visu_pars, method, slope, offset):
niiobj.header['scl_slope'] = data_slp
else:
niiobj.header['scl_slope'] = 1
else:
niiobj.header['scl_slope'] = 1
if not offset:
if offset is not None:
if isinstance(data_off, list):
Expand All @@ -747,6 +749,8 @@ def _set_nifti_header(self, niiobj, visu_pars, method, slope, offset):
niiobj.header['scl_inter'] = data_off
else:
niiobj.header['scl_inter'] = 0
else:
niiobj.header['scl_inter'] = 0
return niiobj

# EPI
Expand Down

0 comments on commit cfebb20

Please sign in to comment.