MCPcopy Create free account
hub / github.com/PyTables/PyTables / Test

Class Test

tables/description.py:953–980  ·  view source on GitHub ↗

A description that has several columns.

Source from the content-addressed store, hash-verified

951 Value = Float64Col()
952
953 class Test(IsDescription):
954 """A description that has several columns."""
955
956 x = Col.from_type("int32", 2, 0, pos=0)
957 y = Col.from_kind("float", dflt=1, shape=(2, 3))
958 z = UInt8Col(dflt=1)
959 color = StringCol(2, dflt=" ")
960 # color = UInt32Col(2)
961 Info = Info()
962
963 class LInfo(IsDescription): # noqa: D106
964 _v_pos = 1
965 name = UInt32Col()
966 value = Float64Col(pos=0)
967 y2 = Col.from_kind("float", dflt=1, shape=(2, 3), pos=1)
968 z2 = UInt8Col(dflt=1)
969
970 class LInfo2(IsDescription): # noqa: D106
971 y3 = Col.from_kind("float", dflt=1, shape=(2, 3))
972 z3 = UInt8Col(dflt=1)
973 name = UInt32Col()
974 value = Float64Col()
975
976 class LInfo3(IsDescription): # noqa: D106
977 name = UInt32Col()
978 value = Float64Col()
979 y4 = Col.from_kind("float", dflt=1, shape=(2, 3))
980 z4 = UInt8Col(dflt=1)
981
982 # class Info(IsDescription):
983 # _v_pos = 2

Callers 1

description.pyFile · 0.70

Calls 3

InfoClass · 0.70
from_typeMethod · 0.45
from_kindMethod · 0.45

Tested by

no test coverage detected