payed off testing technical debt + bug fixes + traces based evaluator

This commit is contained in:
Marcell Vazquez-Chanlatte 2017-11-11 17:35:48 -08:00
parent 72639bc59f
commit cba8a83c8e
12 changed files with 302 additions and 172 deletions

20
stl/test_load.py Normal file
View file

@ -0,0 +1,20 @@
import pandas as pd
from stl.load import from_pandas
DATA = pd.DataFrame(
data={
'AP1': [True, False, True],
'x': [0, 0, 0.1],
'y': [-1, -1, 0],
'z': [2, 3, 1],
},
index=[0, 1, 2],
)
def test_from_pandas():
x = from_pandas(DATA)
assert x['x'][0] == 0
assert x['x'][0.2] == 0
assert not x['AP1'][1.4]