Skip to content

Instantly share code, notes, and snippets.

View TStesco's full-sized avatar

Tom Stesco TStesco

View GitHub Profile
@TStesco
TStesco / demo_online_update.py
Last active August 6, 2018 12:49
demo pymc3 problem on online updating with pm.Interpolate() changing the model prior at each iteration.
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import pymc3 as pm
import numpy as np
import theano
import pickle
import os
import copy
from scipy import stats
@TStesco
TStesco / com.canonical.unity-greeter.gschema.xml
Created May 17, 2018 21:09
unity configuration settings
<key name="background" type="s">
<default>'/usr/share/backgrounds/milky_way.png'</default>
<summary>Background file to use</summary>
</key>
<key name="background-color" type="s">
<default>'#000000'</default>
<summary>Background color, set before wallpaper is seen</summary>
</key>
<key name="draw-user-backgrounds" type="b">
<default>false</default>
@TStesco
TStesco / energyplus_fmu_jmodelica_example.py
Created May 17, 2018 20:41
Example usage of energyplus.fmu with JModelica and PyFMI
import os
from pymodelica import compile_fmu
from pyfmi import load_fmu
import matplotlib.pyplot as plt
# add energyplus cli script to $PATH, not needed if already in $PATH
os.environ['PATH'] = os.environ['PATH'] +":/opt/EnergyPlus/EnergyPlus-8-9-0"
# load .fmu with pyfmi
fmu_path = '<path>/_fmu_export_variable.fmu'