Skip to content

Instantly share code, notes, and snippets.

View craabreu's full-sized avatar

Charlles Abreu craabreu

View GitHub Profile
@craabreu
craabreu / csvr.py
Last active June 10, 2023 18:01
Canonical Sampling through Velocity Rescaling in OpenMM
from typing import Union
import numpy as np
import openmm
from openmm import unit
class CSVRIntegrator(openmm.CustomIntegrator):
"""