Skip to content

Instantly share code, notes, and snippets.

View mikofski's full-sized avatar
😎
Solving solar

Mark Mikofski mikofski

😎
Solving solar
View GitHub Profile
@shoyer
shoyer / scipy-vs-numba-interp1d.ipynb
Last active September 18, 2019 08:05
scipy vs numba interp1d.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tvaught
tvaught / sir.py
Created March 30, 2020 01:55
SEIR Model in Python using Bokeh for Visualization
# Simple SEIR model
# by: Travis N. Vaught
#
# This is a bokeh version of the model shown here:
# https://scipython.com/book/chapter-8-scipy/additional-examples/the-sir-epidemic-model/
# and here:
# https://towardsdatascience.com/social-distancing-to-slow-the-coronavirus-768292f04296
#
# Dependencies:
# numpy, scipy, bokeh
@kandersolar
kandersolar / ground-sky-vf.ipynb
Last active December 30, 2021 01:22
Calculating sky dome vf for a point on the ground in an infinite sheds array. See https://nbviewer.org/gist/kanderso-nrel/68176ccd617851dfa26623452681fbeb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kandersolar
kandersolar / pvfactors_vs_infinitesheds.ipynb
Last active May 28, 2022 21:24
Comparison of front- and rear-side irradiance between pvfactors and DNV's infinite sheds model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from scipy.stats import norm, uniform, gamma
from matplotlib.pyplot import rc, rcdefaults, subplots, imread, show
from matplotlib.lines import Line2D
from matplotlib.ticker import MultipleLocator
from matplotlib.transforms import blended_transform_factory
from matplotlib.offsetbox import VPacker, TextArea, AnchoredOffsetbox, DrawingArea
from matplotlib.image import BboxImage
from numpy.random import default_rng