We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0f896 commit a4140a6Copy full SHA for a4140a6
crystal_toolkit/components/diffraction.py
@@ -503,8 +503,8 @@ def pattern_from_struct(struct, rad_source):
503
Output(self.id("large_cell_note"), "children"),
504
Input(self.id("structure"), "data"),
505
)
506
- def update_message(structure):
507
- if len(self.from_data(structure).sites) < SITES_LIMIT:
+ def update_message(structure: Structure | None):
+ if structure is None or len(self.from_data(structure).sites) < SITES_LIMIT:
508
return html.Div([])
509
return MessageContainer(
510
MessageBody(
0 commit comments