File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ class MaskedImageParamMixin(DataSet):
433
433
"""Mixin for masked image parameters."""
434
434
435
435
g_mask = BeginGroup (_ ("Mask" ))
436
- filling_value = FloatItem (_ ("Filling value" ), allow_none = True )
436
+ filling_value = FloatItem (_ ("Filling value" ))
437
437
show_mask = BoolItem (_ ("Show image mask" ), default = False )
438
438
alpha_masked = FloatItem (_ ("Masked area alpha" ), default = 0.7 , min = 0 , max = 1 )
439
439
alpha_unmasked = FloatItem (_ ("Unmasked area alpha" ), default = 0.0 , min = 0 , max = 1 )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class LabelParam(DataSet):
47
47
___cont = BeginGroup (_ ("Contents" )).set_prop (
48
48
"display" , icon = "label.png" , hide = GetAttrProp ("_no_contents" )
49
49
)
50
- contents = TextItem ("" , "" ).set_prop ("display" , hide = GetAttrProp ("_no_contents" ))
50
+ contents = TextItem ("" ).set_prop ("display" , hide = GetAttrProp ("_no_contents" ))
51
51
___econt = EndGroup (_ ("Contents" )).set_prop (
52
52
"display" , hide = GetAttrProp ("_no_contents" )
53
53
)
Original file line number Diff line number Diff line change @@ -447,11 +447,9 @@ def update_status(self, plot: BasePlot) -> None:
447
447
class AspectRatioParam (DataSet ):
448
448
"""Dataset containing aspect ratio parameters."""
449
449
450
- lock = BoolItem (_ ("Lock aspect ratio" ), default = True )
451
- current = FloatItem (_ ("Current value" ), default = 1.0 ).set_prop (
452
- "display" , active = False
453
- )
454
- ratio = FloatItem (_ ("Lock value" ), min = 1e-3 , default = 1.0 )
450
+ lock = BoolItem (_ ("Lock aspect ratio" ))
451
+ current = FloatItem (_ ("Current value" )).set_prop ("display" , active = False )
452
+ ratio = FloatItem (_ ("Lock value" ), min = 1e-3 )
455
453
456
454
457
455
class AspectRatioTool (CommandTool ):
Original file line number Diff line number Diff line change 83
83
class AutoFitParam (DataSet ):
84
84
"""Automatic fit parameters"""
85
85
86
- xmin = FloatItem ("xmin" , default = 0.0 )
87
- xmax = FloatItem ("xmax" , default = 1.0 )
86
+ xmin = FloatItem ("xmin" )
87
+ xmax = FloatItem ("xmax" )
88
88
method = ChoiceItem (
89
89
_ ("Method" ),
90
90
[
@@ -99,7 +99,7 @@ class AutoFitParam(DataSet):
99
99
)
100
100
err_norm = StringItem (
101
101
"enorm" ,
102
- default = " 2.0" ,
102
+ default = 2.0 ,
103
103
help = _ ("for simplex, powel, cg and bfgs norm used by the error function" ),
104
104
)
105
105
xtol = FloatItem (
@@ -117,7 +117,7 @@ class AutoFitParam(DataSet):
117
117
class FitParamDataSet (DataSet ):
118
118
"""Fit parameter dataset"""
119
119
120
- name = StringItem (_ ("Name" ), default = "" )
120
+ name = StringItem (_ ("Name" ))
121
121
value = FloatItem (_ ("Value" ), default = 0.0 )
122
122
min = FloatItem (_ ("Min" ), default = - 1.0 )
123
123
max = FloatItem (_ ("Max" ), default = 1.0 ).set_pos (col = 1 )
You can’t perform that action at this time.
0 commit comments