Skip to content

Instantly share code, notes, and snippets.

View prasanta13's full-sized avatar

Prasanta Bandyopadhyay prasanta13

  • 21:19 (UTC +01:00)
View GitHub Profile
@oshea00
oshea00 / kabsch.py
Last active June 19, 2024 01:45
3D best-fit using Kabsch algorithm
import numpy as np
from math import sqrt
scaling = False
# Implements Kabsch algorithm - best fit.
# Supports scaling (umeyama)
# Compares well to SA results for the same data.
# Input:
# Nominal A Nx3 matrix of points
@mretegan
mretegan / mep.py
Last active June 15, 2024 10:16
Create a .cube file of the molecular electrostatic potential using ORCA.
"""
(c) 2013, 2019, 2022 Marius Retegan
License: BSD-2-Clause
Description: Create a .cube file of the molecular electrostatic
potential (MEP) using ORCA.
Run: python mep.py basename npoints nprocs (e.g. python mep.py water 40 2).
Arguments: basename - file name without the extension;
this should be the same for the .gbw and .scfp.
npoints - number of grid points per side
(80 should be fine)