@@ -651,7 +651,7 @@ def _make_title(self, legend):
651
651
for part in formula_parts
652
652
]
653
653
except Exception :
654
- formula_components = list (map (str , composition . keys () ))
654
+ formula_components = list (map (str , composition ))
655
655
656
656
return H2 (
657
657
formula_components , id = self .id ("title" ), style = {"display" : "inline-block" }
@@ -666,9 +666,7 @@ def _make_bonding_algorithm_custom_cuffoff_data(graph):
666
666
species = set (
667
667
map (
668
668
str ,
669
- chain .from_iterable (
670
- [list (c .keys ()) for c in struct_or_mol .species_and_occu ]
671
- ),
669
+ chain .from_iterable ([list (c ) for c in struct_or_mol .species_and_occu ]),
672
670
)
673
671
)
674
672
rows = [
@@ -879,7 +877,7 @@ def _sub_layouts(self):
879
877
data = self .initial_data ["scene" ],
880
878
settings = self .initial_scene_settings ,
881
879
sceneSize = "100%" ,
882
- fileOptions = list (self .download_options ["Structure" ]. keys () ),
880
+ fileOptions = list (self .download_options ["Structure" ]),
883
881
showControls = self .show_controls ,
884
882
showExpandButton = self .show_expand_button ,
885
883
showImageButton = self .show_image_button ,
@@ -964,7 +962,7 @@ def _preprocess_input_to_graph(
964
962
else :
965
963
if (
966
964
bonding_strategy
967
- not in StructureMoleculeComponent .available_bonding_strategies . keys ()
965
+ not in StructureMoleculeComponent .available_bonding_strategies
968
966
):
969
967
valid_subclasses = ", " .join (
970
968
StructureMoleculeComponent .available_bonding_strategies
0 commit comments