Skip to content

Commit

Permalink
init.mt for mf8
Browse files Browse the repository at this point in the history
  • Loading branch information
AitorBengoechea committed Jun 27, 2022
1 parent 8a3f047 commit 760eaf1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sandy/sampling2.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def get_fy_cov(endf6):
"""
global init
fy = sandy.Fy.from_endf6(endf6.filter_by(listmat=init.mat, listmt=init.mt))
mt = [454, 459] if init.mt is None else init.mt
fy = sandy.Fy.from_endf6(endf6.filter_by(listmat=init.mat, listmt=mt))
fy_cov = fy.data.groupby(['MAT', 'MT', 'E'])["DFY"]\
.apply(lambda x: sandy.CategoryCov.from_stdev(x))
return fy_cov
Expand Down Expand Up @@ -297,7 +298,7 @@ def get_cov(endf6):
mf=mf_extract,
mt=init.mt,
njoy=init.njoy,
temperature=0,
temperature=0,
p=init.max_polynomial)})
elif len(mf_process) + len(mf_extract) >= 1:
cov.update(endf6.get_cov(process_mf=mf_process,
Expand Down Expand Up @@ -466,7 +467,7 @@ def pert_by_mf(samples, pert_objects, i, mat):

# Output files:
output = os.path.join(init.outdir, '{}-{}'.format(outname, i))

return pert_endf6.to_file(output)


Expand Down Expand Up @@ -568,7 +569,7 @@ def sampling(iargs=None):

# Perturbed endf:
perturbation_manager(samples, ftape)

# Produce ACE files:
if init.acer:
ace_files()
Expand Down

0 comments on commit 760eaf1

Please sign in to comment.