A slowly growing repository of code snippets
Here I share some examples of potentially useful code snippets for topics in chemistry/physics, molecular modeling, data fitting, and data visualization. Some (but not all) have associated blog posts with more detailed explanations here. Note that these examples are for tutorial purposes only.
Cartesian to fractional coordinate conversionRotation of a molecular structureXYZ file of optimized coordinates from MOPAC outputMatplotlib examplesBoltzmann statisticsPolynomial fittingPIB (1D) eigenstates