view tests/test_broadcasting.py @ 14:ec5f97abf8ed

stub np broadcasting test
author Jeff Hammel <k0scist@gmail.com>
date Sun, 03 Sep 2017 12:07:49 -0700
parents
children 926c127305fa
line wrap: on
line source

#!/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()