Skip to content

Instantly share code, notes, and snippets.

View will-henney's full-sized avatar

William Henney will-henney

  • IRyA, UNAM
  • Morelia, Michoacán, Mexico
View GitHub Profile
@will-henney
will-henney / discrete_gaussian_model.py
Created May 9, 2023 18:59
Discrete Gaussian model that behaves well when sigma much less than bin width
import numpy as np
import scipy.stats
import astropy.modeling
def _E_cdf(x, x0, sig):
"General case of any profile via the CDF"
return scipy.stats.norm.cdf(x, loc=x0, scale=sig)
@astropy.modeling.custom_model
def DiscreteGaussianModel(x, amplitude=1.0, mean=0.0, stddev=1.0, bin_width=1.0):
@will-henney
will-henney / Demo of contours for Tere.ipynb
Created January 22, 2020 05:05
Demo of contours for Tere
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@will-henney
will-henney / keybase.md
Created November 15, 2019 23:12
Proof of identity for keybase.io

Keybase proof

I hereby claim:

  • I am will-henney on github.
  • I am will_henney (https://keybase.io/will_henney) on keybase.
  • I have a public key ASAztzl4F388IG4TIoqIk09EDZo3YbuMRIQ-5zstF38nxAo

To claim this, I am signing this object:

@will-henney
will-henney / internal-links-test.org
Last active August 23, 2022 20:59
Tests of internal link syntax in emacs org-mode and in org-ruby