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

Class NumPyDTWriteTestCase

tables/tests/test_tables.py:2363–2385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2361
2362# Pure NumPy dtype
2363class NumPyDTWriteTestCase(BasicTestCase):
2364 title = "NumPyDTWriteTestCase"
2365 formats = "S4,i4,i2,2f8,f4,i2,S1,b1,c8,c16".split(",")
2366 names = "var1,var2,var3,var4,var5,var6,var7,var8,var9,var10".split(",")
2367
2368 if hasattr(tb, "Float16Col"):
2369 formats.append("f2")
2370 names.append("var11")
2371 if hasattr(tb, "Float96Col"):
2372 formats.append("f12")
2373 names.append("var12")
2374 if hasattr(tb, "Float128Col"):
2375 formats.append("f16")
2376 names.append("var13")
2377 if hasattr(tb, "Complex192Col"):
2378 formats.append("c24")
2379 names.append("var14")
2380 if hasattr(tb, "Complex256Col"):
2381 formats.append("c32")
2382 names.append("var15")
2383
2384 record = np.dtype(",".join(formats))
2385 record.names = names
2386
2387
2388class RecArrayOneWriteTestCase(BasicTestCase):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
dtypeMethod · 0.45

Tested by

no test coverage detected