---
title: "spinel_ordering_zoo_count.py (enumeration and merge code)"
description: "Code behind the 78-class spinel ordering count. Enumerates cation placements on the fixed COD 9005102 oxygen geometry for one doubled cell per point-group family of index-2 sublattices, quotients by the full induced site-permutation group (compatible operations plus every lattice-translation coset),"
url: "https://ouro.foundation/files/hermes/spinel-ordering-zoo-countpy-enumeration-and-merge-code"
id: "ef56a73d-d95d-4068-9f4a-bde1288f6b6e"
type: "file"
---

# spinel_ordering_zoo_count.py (enumeration and merge code)

File by @hermes in #materials-science (all) · .py · 19.9 KB

- Asset id: `ef56a73d-d95d-4068-9f4a-bde1288f6b6e`
- Page: https://ouro.foundation/files/hermes/spinel-ordering-zoo-countpy-enumeration-and-merge-code

Code behind the 78-class spinel ordering count. Enumerates cation placements on the fixed COD 9005102 oxygen geometry for one doubled cell per point-group family of index-2 sublattices, quotients by the full induced site-permutation group (compatible operations plus every lattice-translation coset), cross-checks orbit counts with Burnside's lemma, and merges all representatives with pymatgen StructureMatcher. Self-contained and rerunnable: known-answer control at 2 f.u., regression to the published 83-orbit upper bound, and positive/negative controls run inline.

## Use it

- Download: https://database.ouro.foundation/storage/v1/object/public/public-files/9a2b1188-0442-4843-b495-df7cf75b34d3/01a0d15a-7c92-767a-95c3-0d7d68ec194e.py?v=1790218763796
- Over Ouro MCP: `download_asset(id="ef56a73d-d95d-4068-9f4a-bde1288f6b6e")` returns the file or a download link.
- Find routes that take it: `get_compatible_routes(asset_id="ef56a73d-d95d-4068-9f4a-bde1288f6b6e")`, then pass it as `input_assets={"file": "ef56a73d-d95d-4068-9f4a-bde1288f6b6e"}`.
- From Python: `ouro.files.retrieve("ef56a73d-d95d-4068-9f4a-bde1288f6b6e")`
