Skip to content

Commit 3a36e5d

Browse files
committed
para
1 parent c6098a0 commit 3a36e5d

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

imagepy/menus/Image/duplicate_plg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ class Duplicate(Simple):
1414
title = 'Duplicate'
1515
note = ['all']
1616

17-
# para = {'name':'Undefined','start':1,'end':2,'stack':True}
17+
para = {'name':'Undefined','start':1,'end':2,'stack':True}
1818

1919
def load(self, ips):
2020
self.slength = len(ips.imgs)
21-
self.para = {'name':'Undefined','start':1,'end':self.slength,'stack':True}
2221
self.para['name'] = ips.title+'-copy'
22+
self.para['end'] = self.slength
2323
self.view = [(str, 'name', 'Name', '')]
2424
if ips.get_nslices()>1:
2525
self.view.append((int, 'start',

imagepy/menus/Plugins/temporal_plg.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@ def color_code(img, lut):
3131
class Plugin(Simple):
3232
title = 'Temporal color-code'
3333
note = ['all', 'stack']
34-
# para = {'LUT':'Jet',
35-
# 'Start image':1,
36-
# 'End image': 2,
37-
# 'Creatbar':True}
38-
def load(self, ips):
39-
self.slength = len(ips.imgs)
40-
self.para = {'LUT':'Jet',
34+
para = {'LUT':'Jet',
4135
'Start image':1,
42-
'End image': self.slength,
36+
'End image': 2,
4337
'Creatbar':True}
38+
def load(self, ips):
39+
self.slength = len(ips.imgs)
4440
self.para['End image'] = self.slength
4541
self.view = [(list, 'LUT', list(ColorManager.luts.keys()), str, 'LUT',''),
4642
(int, 'Start image', (1,self.slength),0,'Start image','1~%d'%self.slength),

0 commit comments

Comments
 (0)