Skip to content

Instantly share code, notes, and snippets.

View hostile-duck's full-sized avatar

la-duck hostile-duck

  • Earth [Simulation 36a]
View GitHub Profile
import random
from typing import List, Tuple
from scipy.spatial import distance
def formula(atoms: list):
SUB = str.maketrans("0123456789", "₀₁₂₃₄₅₆₇₈₉")
set_atoms = list(set(atoms))
max_i = set_atoms[1] if atoms.count(set_atoms[1]) > 1 else set_atoms[0]