From 77c45badc810bdc2b5b04b870c3572f841d0fdac Mon Sep 17 00:00:00 2001 From: Ilham Variansyah Date: Thu, 25 Jul 2024 16:22:04 +0700 Subject: [PATCH] back in black --- test/regression/slab_ce/input.py | 62 ++++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/test/regression/slab_ce/input.py b/test/regression/slab_ce/input.py index f020b873..8f1208d1 100644 --- a/test/regression/slab_ce/input.py +++ b/test/regression/slab_ce/input.py @@ -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(