Skip to content

Instantly share code, notes, and snippets.

View jhrmnn's full-sized avatar

Jan Hermann jhrmnn

View GitHub Profile
#!/usr/bin/env python3
import sys
import subprocess as sp
from pathlib import Path
from argparse import ArgumentParser
from configparser import ConfigParser
def ssh(host, cmd):
return sp.check_output(['ssh', host, cmd]).strip().decode()
#!/usr/bin/env python3
from argparse import ArgumentParser
from pathlib import Path
from datetime import datetime, timedelta
import subprocess
from math import log10, sqrt
def prune(seq, key, dist):
pruned = []
from mbd import mbd
from pymbd import get_free_atom_data
import numpy as np
import os
import sys
from contextlib import contextmanager
def get_epsilon_M_for_q(species, xyz, lattice, hirsh, q_dir, scale):
assert np.abs(np.linalg.norm(q_dir)-1) < 1e-10
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am azag0 on github.
  • I am azag0 (https://keybase.io/azag0) on keybase.
  • I have a public key whose fingerprint is EF58 0816 2CC4 6611 E5A2 ECAC 72BB B9DC 774D BDF2

To claim this, I am signing this object: