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

Method setUp

tables/tests/test_expression.py:579–587  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

577 shape = (10,)
578
579 def setUp(self):
580 super().setUp()
581
582 # Define the NumPy variables to be used in expression
583 N = np.prod(self.shape)
584 self.a = np.arange(N, dtype="int32").reshape(self.shape)
585 self.b = np.arange(N, dtype="int64").reshape(self.shape)
586 self.c = np.arange(N, dtype="int32").reshape(self.shape)
587 self.r1 = np.empty(N, dtype="int64").reshape(self.shape)
588
589 def _test00_shape(self):
590 """Checking that inconsistent shapes are detected."""

Callers 3

setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected