Skip to content

Commit

Permalink
Merge pull request #35 from aghaeifar/master
Browse files Browse the repository at this point in the history
RuntimeWarning: overflow encountered in scalar subtract
  • Loading branch information
pehses authored Feb 8, 2025
2 parents 212a9ce + 6adc139 commit 545315e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twixtools/map_twix.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def lin_offset(self):
def par_offset(self):
offset = 0
if self.hdr is not None and self.flags['zf_missing_lines'] and self.base_size['Par']//2 > self.kspace_center_lin + 1:
offset = self.base_size['Par'] - 2 * self.kspace_center_par
offset = int(self.base_size['Par']) - 2 * self.kspace_center_par
return offset

@property
Expand Down

0 comments on commit 545315e

Please sign in to comment.