Commit 352486dc authored by Reimar H Leike's avatar Reimar H Leike
Browse files

reduced number of times constructing the DOFDistributor is tried to a finite number

parent b0f8dc8a
......@@ -41,7 +41,8 @@ class Consistency_Tests(unittest.TestCase):
def testDOFDistributor(self, sp, dtype):
if sp.size < 4:
while True:
N_tries = 10
for i in range(N_tries):
dofdex = np.random.choice(np.arange(3), size=sp.shape)
dofdex = ift.Field.from_global_data(sp, dofdex)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment