Fix failing tests

This commit is contained in:
Paul Romano 2023-04-13 07:25:19 -05:00
parent f23620896d
commit aed797631b
2 changed files with 3 additions and 7 deletions

View file

@ -1,7 +1,3 @@
import random
from math import sqrt
import numpy as np
import openmc
import openmc.model
@ -65,8 +61,8 @@ class TRISOTestHarness(PyAPITestHarness):
box = openmc.Cell(region=box_region)
outer_radius = 422.5*1e-4
centers = openmc.model.pack_spheres(radius=outer_radius,
region=box_region, num_spheres=100)
centers = openmc.model.pack_spheres(
radius=outer_radius, region=box_region, num_spheres=100, seed=1)
trisos = [openmc.model.TRISO(outer_radius, inner_univ, c)
for c in centers]

View file

@ -74,7 +74,7 @@ def test_get_keff(res):
def test_get_steps(unit):
# Make a Results full of near-empty Result instances
# Just fill out a time schedule
results = openmc.deplete.Results()
results = openmc.deplete.Results(filename=None)
# Time in units of unit
times = np.linspace(0, 100, num=5)
if unit == "a":