Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
spasmann committed Dec 7, 2023
1 parent fff1d99 commit 0f2c487
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
2 changes: 2 additions & 0 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3744,6 +3744,8 @@ def modified_gram_schmidt(V, u):
v2 = w2 / np.linalg.norm(w2)
V = np.append(V, v2, axis=1)
return V


# =============================================================================
# Variance Deconvolution
# =============================================================================
Expand Down
27 changes: 20 additions & 7 deletions mcdc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,18 +716,31 @@ def generate_hdf5(mcdc):
"iqmc/tally/flux", data=np.squeeze(T["iqmc"]["score"]["flux"])
)
f.create_dataset(
"iqmc/tally/fission_source", data=T["iqmc"]["score"]["fission-source"]
"iqmc/tally/fission_source",
data=T["iqmc"]["score"]["fission-source"],
)
f.create_dataset(
"iqmc/tally/fission_power", data=T["iqmc"]["score"]["fission-power"]
)
f.create_dataset("iqmc/tally/source_constant", data=T["iqmc"]["source"])
f.create_dataset("iqmc/tally/source_x", data=T["iqmc"]["score"]["tilt-x"])
f.create_dataset("iqmc/tally/source_y", data=T["iqmc"]["score"]["tilt-y"])
f.create_dataset("iqmc/tally/source_z", data=T["iqmc"]["score"]["tilt-z"])
f.create_dataset("iqmc/tally/source_xy", data=T["iqmc"]["score"]["tilt-xy"])
f.create_dataset("iqmc/tally/source_xz", data=T["iqmc"]["score"]["tilt-xz"])
f.create_dataset("iqmc/tally/source_yz", data=T["iqmc"]["score"]["tilt-yz"])
f.create_dataset(
"iqmc/tally/source_x", data=T["iqmc"]["score"]["tilt-x"]
)
f.create_dataset(
"iqmc/tally/source_y", data=T["iqmc"]["score"]["tilt-y"]
)
f.create_dataset(
"iqmc/tally/source_z", data=T["iqmc"]["score"]["tilt-z"]
)
f.create_dataset(
"iqmc/tally/source_xy", data=T["iqmc"]["score"]["tilt-xy"]
)
f.create_dataset(
"iqmc/tally/source_xz", data=T["iqmc"]["score"]["tilt-xz"]
)
f.create_dataset(
"iqmc/tally/source_yz", data=T["iqmc"]["score"]["tilt-yz"]
)
# iteration data
f.create_dataset("iqmc/itteration_count", data=T["iqmc"]["itt"])
f.create_dataset("iqmc/final_residual", data=T["iqmc"]["res"])
Expand Down
2 changes: 1 addition & 1 deletion test/regression/iqmc_cooper2/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
maxitt=maxit,
tol=tol,
generator=generator,
score=['tilt-x', 'tilt-y', 'tilt-xy']
score=["tilt-x", "tilt-y", "tilt-xy"],
)

# =============================================================================
Expand Down
2 changes: 1 addition & 1 deletion test/regression/iqmc_kornreich_pi/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
tol=tol,
generator=generator,
eigenmode_solver=solver,
score=['tilt-x']
score=["tilt-x"],
)
# Setting
mcdc.setting(N_particle=N)
Expand Down
2 changes: 1 addition & 1 deletion test/regression/iqmc_reed/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
tol=tol,
generator=generator,
fixed_source_solver=solver,
score=['tilt-x']
score=["tilt-x"],
)

# =============================================================================
Expand Down

0 comments on commit 0f2c487

Please sign in to comment.