Skip to content

Commit

Permalink
fixed imtrim for arrays input
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed Sep 29, 2024
1 parent a508738 commit f332524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion niftypet/nimpa/img/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create_disk(shape_in, r=1, a=0, b=0, gen_scale=1, threshold=None):
shape = shape_in

imsk = np.zeros((gen_scale * shape[1], gen_scale * shape[2]), dtype=np.float32)
for t in np.arange(0, math.pi, math.pi / (gen_scale*400)):
for t in np.arange(0, math.pi, math.pi / (gen_scale*1000)):
x = gen_scale * r * np.cos(t) + gen_scale*a
y = gen_scale * r * np.sin(t) + gen_scale*b

Expand Down
2 changes: 1 addition & 1 deletion niftypet/nimpa/prc/prc.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def im_project3(im):
# <><><><><><><><><><><><><><><><><><><><><><><><><><><><>


def imtrimup(fims, refim='', affine=None, scale=2, divdim=8**2, fmax=0.05, int_order=0,
def imtrimup(fims, refim='', affine=None, flip=None, trnsp=None, scale=2, divdim=8**2, fmax=0.05, int_order=0,

Check failure on line 222 in niftypet/nimpa/prc/prc.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nimpa/prc/prc.py#L222

E501 line too long (110 > 99 characters)
Raw output
niftypet/nimpa/prc/prc.py:222:100: E501 line too long (110 > 99 characters)
outpath=None, fname='', fcomment='', fcomment_pfx='', store_avg=False,
store_img_intrmd=False, store_img=False, imdtype=np.float32, grid_mode=True,
memlim=False, verbose=False, Cnt=None):
Expand Down

0 comments on commit f332524

Please sign in to comment.