Mercurial > hg > tvii
changeset 14:ec5f97abf8ed
stub np broadcasting test
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 03 Sep 2017 12:07:49 -0700 |
parents | 8cb116d63a78 |
children | 926c127305fa |
files | tests/test_broadcasting.py |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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()