We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8e2d6 commit 1fde937Copy full SHA for 1fde937
niworkflows/interfaces/bids.py
@@ -648,6 +648,10 @@ def _run_interface(self, runtime):
648
if new_data is None:
649
set_consumables(new_header, orig_img.dataobj)
650
new_data = orig_img.dataobj.get_unscaled()
651
+ else:
652
+ # Without this, we would be writing nans
653
+ # This is our punishment for hacking around nibabel defaults
654
+ new_header.set_slope_inter(slope=1., inter=0.)
655
unsafe_write_nifti_header_and_data(
656
fname=out_file,
657
header=new_header,
0 commit comments