Skip to content

Commit da3de85

Browse files
committed
Fix bug reported by Jingyang Wang
Keyword argument types were specified incorrectly for SlabTransformation
1 parent a8a98bf commit da3de85

File tree

1 file changed

+2
-1
lines changed
  • crystal_toolkit/components/transformations

1 file changed

+2
-1
lines changed

crystal_toolkit/components/transformations/slab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def options_layouts(self, state=None, structure=None):
4545
kwarg_label="miller_index",
4646
state=state,
4747
help_str="The surface plane defined by its Miller index (h, k, l)",
48+
is_int=True,
4849
shape=(3,),
4950
)
5051

@@ -54,7 +55,7 @@ def options_layouts(self, state=None, structure=None):
5455
state=state,
5556
help_str="Minimum slab size in Ångstroms (or number of planes of atoms if "
5657
'"Use plane units" enabled)',
57-
shape=(3,),
58+
shape=(),
5859
)
5960

6061
min_vacuum_size = self.get_numerical_input(

0 commit comments

Comments
 (0)