Updated to use absolute imports

I used to add .\code to the path, which was an absurd hack.
Now all code is imported with import code.foo.
This commit is contained in:
Roger Labbe
2016-03-06 12:02:13 -08:00
parent fa62edccc4
commit 6f1fd2f16f
26 changed files with 555 additions and 31465 deletions

View File

@@ -16,18 +16,14 @@ for more information.
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
sys.path.insert(0, '..')
import book_plots
import code.book_plots as book_plots
import numpy as np
from matplotlib.patches import Circle, Rectangle, Polygon, Arrow, FancyArrow
import pylab as plt
import time
def plot_gh_results(weights, estimates, predictions, time_step=0):
n = len(weights)