Skip to content

Instantly share code, notes, and snippets.

View jetuk's full-sized avatar

James Tomlinson jetuk

  • Lincolnshire, United Kingdom
View GitHub Profile
@jetuk
jetuk / two_reservoir_inspyred_pp.py
Created November 24, 2017 14:18
Inspyred post-processing of two reservoir problem in Pywr
import csv
from matplotlib import pyplot as plt
import pandas
import numpy as np
def quoter(rows):
for row in rows:
yield row.replace('[', '"').replace(']', '"')
@jetuk
jetuk / Simple model scalability.ipynb
Created December 12, 2016 23:43
Simple model scalability in Pywr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jetuk
jetuk / scottish_config.json
Created October 4, 2016 21:05
Example of Scottish DO method with Pywr
{
"demand_scaling": {
"minimum": 0.8,
"maximum": 1.8,
"steps": 50
},
"nodes" : ["demand"],
"recorder" : "deficit_freq"
}