Skip to content

Commit 6942117

Browse files
Chiu PeterChiu Peter
authored andcommitted
add constraints on positive supercell construction
1 parent 933ddc3 commit 6942117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crystal_toolkit/components/phonon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,23 @@ def _sub_layouts(self) -> dict[str, Component]:
184184
default=1,
185185
is_int=True,
186186
label="x",
187+
min=1,
187188
style={"width": "5rem"},
188189
),
189190
self.get_numerical_input(
190191
kwarg_label="scale-y",
191192
default=1,
192193
is_int=True,
193194
label="y",
195+
min=1,
194196
style={"width": "5rem"},
195197
),
196198
self.get_numerical_input(
197199
kwarg_label="scale-z",
198200
default=1,
199201
is_int=True,
200202
label="z",
203+
min=1,
201204
style={"width": "5rem"},
202205
),
203206
html.Button(

0 commit comments

Comments
 (0)