# HG changeset patch # User Jeff Hammel # Date 1504465669 25200 # Node ID ec5f97abf8edd4e29a2af4d4aae7f79276e78f6e # Parent 8cb116d63a7829484e7fc7e84ea8b4bb09c9f5e4 stub np broadcasting test diff -r 8cb116d63a78 -r ec5f97abf8ed tests/test_broadcasting.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_broadcasting.py Sun Sep 03 12:07:49 2017 -0700 @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +""" +illustration of numpy broadcasting +""" + +import os +import unittest +import numpy as np + + #apples, beef, eggs, potatos +calories = [[56., 0.0, 4.4, 68.], # carbs + [1.2, 104., 52., 8.], # protein + [1.8, 135., 99., 0.9]] # fat + +class TestBroadcasting(unittest.TestCase): + def test_basic(self): + """example of braodcasting""" + +if __name__ == '__main__': + unittest.main()