Skip to content

Instantly share code, notes, and snippets.

@baoilleach
baoilleach / uvvis.py
Created June 5, 2013 20:26
Use GaussSum to automatically generate UV-Vis spectra
"""Script to plot UV-Vis spectrum using GaussSum
Before running, set the PYTHONPATH to the directory containing GaussSum.py.
This script runs the UV-Vis spectrum generator across every .out file
in the current folder.
"""
import os
import sys
import glob
@cisert
cisert / highlight_atoms_3d.py
Created February 9, 2022 10:48
Draw 3D molecule with highlighted atoms
import py3Dmol
from rdkit import Chem
def draw_mol_with_highlights(mol, hit_ats, style=None):
"""Draw molecule in 3D with highlighted atoms.
Parameters
----------
mol : RDKit molecule
hit_ats : tuple of tuples