This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Test and wrapper script for simulator core functions. | |
To recompile the C++ library type ! ./make.sh from the ipython console and restart | |
the ipython kernel. | |
""" | |
import os | |
import sys | |
path = os.path.dirname(os.path.realpath(__file__)) | |
sys.path.append(path + '/..') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function, division | |
from timeit import default_timer as timer | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from numba import njit | |
w = 400 | |
h = 300 |