Skip to content

Instantly share code, notes, and snippets.

View wgurecky's full-sized avatar

William Gurecky wgurecky

View GitHub Profile
@wgurecky
wgurecky / Metropolis_ex.py
Last active October 2, 2018 23:02
Metropolis MCMC example
###
# author: William Gurecky
# license: MIT
# notes: Implementation of MCMC algos for educational purposes.
###
from __future__ import print_function, division
from six import iteritems
import numpy as np
import scipy.stats as stats
import mc_plot
@wgurecky
wgurecky / par_dask_griddata.py
Last active October 24, 2023 21:22
Parallel scipy griddata with Dask
#!/usr/bin/python3
#!/usr/bin/env python
#-*- coding: utf-8 -*-
#==============================================================================
# Copyright (c) 2018, William Gurecky
# All rights reserved.
#
# DESCRIPTION:
# Inspired from stack overflow question:
# https://stackoverflow.com/questions/52227599/interpolate-griddata-uses-only-one-core