コード例 #1
0
ファイル: random_attack.py プロジェクト: dvorka/datatable
 def check_types(self):
     df_ltypes = self.df.ltypes
     py_ltypes = tuple(dt.ltype(x) for x in self.types)
     if df_ltypes != py_ltypes:
         print("ERROR: types mismatch")
         print("  dt types: %r" % (df_ltypes, ))
         print("  py types: %r" % (py_ltypes, ))
         sys.exit(1)
コード例 #2
0
ファイル: test_types.py プロジェクト: lucther/datatable
def test_stype_ltypes(c_stypes):
    from datatable import stype, ltype
    for st in stype:
        assert st.ltype is ltype(c_stypes[st.code]["ltype"].lower())