Skip to content

Commit

Permalink
back in black
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Jul 25, 2024
1 parent 78bf395 commit 77c45ba
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions test/regression/slab_ce/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,37 @@
os.environ["MCDC_XSLIB"] = os.getcwd()

# Create the dummy nuclide
with h5py.File("dummy_nuclide.h5", 'w') as f:
f['A'] = 1.0

f['E_xs'] = np.array([0.0, 1.0 - 1E-6, 1.0 + 1E-6, 2E7])
f['capture'] = np.array([0.01344, 0.01344, 0.00384, 0.00384])
f['fission'] = np.array([0.06912, 0.06912, 0.00619, 0.00619])
f['scatter'] = np.array([0.26304, 0.26304, 0.15024, 0.15024])

f['E_nu_p'] = np.array([0.0, 1.0 - 1E-6, 1.0 + 1E-6, 2E7])
f['nu_p'] = np.array([2.5, 2.5, 2.7, 2.7])

f['E_chi_p'] = np.array([0.0, 1E5, 2E7])
f['chi_p'] = np.array([0.0, 0.0, 1.0])

f['decay_rate'] = np.zeros(6)

f['E_nu_d'] = np.array([0.0, 2E7])
f['nu_d'] = np.zeros((6,2))

f['E_chi_d1'] = np.zeros(0)
f['E_chi_d2'] = np.zeros(0)
f['E_chi_d3'] = np.zeros(0)
f['E_chi_d4'] = np.zeros(0)
f['E_chi_d5'] = np.zeros(0)
f['E_chi_d6'] = np.zeros(0)
f['chi_d1'] = np.zeros(0)
f['chi_d2'] = np.zeros(0)
f['chi_d3'] = np.zeros(0)
f['chi_d4'] = np.zeros(0)
f['chi_d5'] = np.zeros(0)
f['chi_d6'] = np.zeros(0)
with h5py.File("dummy_nuclide.h5", "w") as f:
f["A"] = 1.0

f["E_xs"] = np.array([0.0, 1.0 - 1e-6, 1.0 + 1e-6, 2e7])
f["capture"] = np.array([0.01344, 0.01344, 0.00384, 0.00384])
f["fission"] = np.array([0.06912, 0.06912, 0.00619, 0.00619])
f["scatter"] = np.array([0.26304, 0.26304, 0.15024, 0.15024])

f["E_nu_p"] = np.array([0.0, 1.0 - 1e-6, 1.0 + 1e-6, 2e7])
f["nu_p"] = np.array([2.5, 2.5, 2.7, 2.7])

f["E_chi_p"] = np.array([0.0, 1e5, 2e7])
f["chi_p"] = np.array([0.0, 0.0, 1.0])

f["decay_rate"] = np.zeros(6)

f["E_nu_d"] = np.array([0.0, 2e7])
f["nu_d"] = np.zeros((6, 2))

f["E_chi_d1"] = np.zeros(0)
f["E_chi_d2"] = np.zeros(0)
f["E_chi_d3"] = np.zeros(0)
f["E_chi_d4"] = np.zeros(0)
f["E_chi_d5"] = np.zeros(0)
f["E_chi_d6"] = np.zeros(0)
f["chi_d1"] = np.zeros(0)
f["chi_d2"] = np.zeros(0)
f["chi_d3"] = np.zeros(0)
f["chi_d4"] = np.zeros(0)
f["chi_d5"] = np.zeros(0)
f["chi_d6"] = np.zeros(0)

# Create the material
dummy_material = mcdc.material(
Expand Down

0 comments on commit 77c45ba

Please sign in to comment.