diff --git a/optimade/models/structures.py b/optimade/models/structures.py index bdedd24e8..c9d724e0d 100644 --- a/optimade/models/structures.py +++ b/optimade/models/structures.py @@ -1104,13 +1104,6 @@ def validate_structure_features(self) -> "StructureResourceAttributes": "greater than one element" ) break - else: - if StructureFeatures.DISORDER in self.structure_features: - raise ValueError( - f"{StructureFeatures.DISORDER.value} MUST NOT be present, " - "since all species' chemical_symbols lists are equal to or " - "less than one element" - ) # site_attachments for species in self.species: diff --git a/tests/models/test_data/test_bad_structures.json b/tests/models/test_data/test_bad_structures.json index da4688014..95f67c1f0 100644 --- a/tests/models/test_data/test_bad_structures.json +++ b/tests/models/test_data/test_bad_structures.json @@ -832,180 +832,6 @@ "structure_features": [], "task_id": "mpf_220" }, - { - "_id": { - "$oid": "5cfb441f053b174410700e04" - }, - "chemsys": "Ag-C-Cl-N-O-S", - "cartesian_site_positions": [ - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ], - [ - 0.48493191553525494, - 0.48493191553525494, - 0.48493191553525494 - ] - ], - "dimension_types": [ - 1, - 1, - 1 - ], - "nperiodic_dimensions": 3, - "elements": [ - "Ag", - "C", - "Cl", - "N", - "O", - "S" - ], - "elements_ratios": [ - 0.2, - 0.1, - 0.1, - 0.1, - 0.4, - 0.1 - ], - "formula_anonymous": "A4B2CDEF", - "last_modified": { - "$date": "2019-06-08T05:13:37.377Z" - }, - "lattice_vectors": [ - [ - 7.7673999365129625, - 0, - 0 - ], - [ - 0, - 9.869311574261594, - 0 - ], - [ - 0, - 0, - 4.715180447893034 - ] - ], - "nelements": 6, - "nsites": 10, - "pretty_formula": "Ag2CClNO4S", - "species": [ - { - "chemical_symbols": [ - "Ag" - ], - "concentration": [ - 1.0 - ], - "name": "Ag" - }, - { - "chemical_symbols": [ - "C" - ], - "concentration": [ - 1.0 - ], - "name": "C" - }, - { - "chemical_symbols": [ - "Cl" - ], - "concentration": [ - 1.0 - ], - "name": "Cl" - }, - { - "chemical_symbols": [ - "N" - ], - "concentration": [ - 1.0 - ], - "name": "N" - }, - { - "chemical_symbols": [ - "O" - ], - "concentration": [ - 1.0 - ], - "name": "O" - }, - { - "chemical_symbols": [ - "S" - ], - "concentration": [ - 1.0 - ], - "name": "S" - } - ], - "species_at_sites": [ - "Ag", - "Ag", - "C", - "Cl", - "N", - "O", - "O", - "O", - "O", - "S" - ], - "structure_features": ["disorder"], - "task_id": "mpf_259" - }, { "_id": { "$oid": "5cfb441f053b174410700e11"