@@ -262,7 +262,7 @@ def _observe_value(self, change):
262
262
class CalcJobOutputFollower (traitlets .HasTraits ):
263
263
calcjob_uuid = traitlets .Unicode (allow_none = True )
264
264
filename = traitlets .Unicode (allow_none = True )
265
- output = traitlets .List (trait = traitlets .Unicode )
265
+ output = traitlets .List (trait = traitlets .Unicode () )
266
266
lineno = traitlets .Int ()
267
267
268
268
def __init__ (self , ** kwargs ):
@@ -447,8 +447,8 @@ class AddingTagsEditor(ipw.VBox):
447
447
"""Editor for adding tags to atoms."""
448
448
449
449
structure = traitlets .Instance (ase .Atoms , allow_none = True )
450
- selection = traitlets .List (traitlets .Int , allow_none = True )
451
- input_selection = traitlets .List (traitlets .Int , allow_none = True )
450
+ selection = traitlets .List (traitlets .Int () , allow_none = True )
451
+ input_selection = traitlets .List (traitlets .Int () , allow_none = True )
452
452
structure_node = traitlets .Instance (orm_Data , allow_none = True , read_only = True )
453
453
454
454
def __init__ (self , title = "" , ** kwargs ):
@@ -693,18 +693,29 @@ def __init__(self, **kwargs):
693
693
the number of nodes and the number of cpus.
694
694
"""
695
695
self .code_selection = ComputationalResourcesWidget (
696
+ description = kwargs .pop ("description" , None ),
697
+ default_calc_job_plugin = kwargs .pop ("default_calc_job_plugin" , None ),
696
698
include_setup_widget = False ,
697
699
fetch_codes = True , # TODO resolve testing issues when set to `False`
698
700
** kwargs ,
699
701
)
700
702
self .code_selection .layout .width = "80%"
701
703
702
704
self .num_nodes = ipw .BoundedIntText (
703
- value = 1 , step = 1 , min = 1 , max = 1000 , description = "Nodes" , width = "10%"
705
+ value = 1 ,
706
+ step = 1 ,
707
+ min = 1 ,
708
+ max = 1000 ,
709
+ description = "Nodes" ,
704
710
)
711
+
705
712
self .num_cpus = ipw .BoundedIntText (
706
- value = 1 , step = 1 , min = 1 , description = "CPUs" , width = "10%"
713
+ value = 1 ,
714
+ step = 1 ,
715
+ min = 1 ,
716
+ description = "CPUs" ,
707
717
)
718
+
708
719
self .btn_setup_resource_detail = ipw .ToggleButton (description = "More" )
709
720
self .btn_setup_resource_detail .observe (self ._setup_resource_detail , "value" )
710
721
self ._setup_resource_detail_output = ipw .Output (layout = {"width" : "500px" })
@@ -896,7 +907,7 @@ def __init__(self, **kwargs):
896
907
value = 1 , step = 1 , min = 1 , max = 128 , description = "Number of k-pools" , ** extra
897
908
)
898
909
self .override = ipw .Checkbox (
899
- escription = "" ,
910
+ description = "" ,
900
911
indent = False ,
901
912
value = False ,
902
913
layout = ipw .Layout (max_width = "20px" ),
@@ -1285,7 +1296,7 @@ def __init__(self, widget: ipw.ValueWidget, units: str, **kwargs):
1285
1296
1286
1297
class ShakeNBreakEditor (ipw .VBox ):
1287
1298
structure = traitlets .Instance (ase .Atoms , allow_none = True )
1288
- selection = traitlets .List (traitlets .Int )
1299
+ selection = traitlets .List (traitlets .Int () )
1289
1300
structure_node = traitlets .Instance (orm_Data , allow_none = True , read_only = True )
1290
1301
1291
1302
def __init__ (self , title = "Editor ShakeNbreak" ):
0 commit comments