From cdc1bd02179f9df7379225cf80af801ed6d5c679 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Tue, 26 Apr 2022 17:00:11 -0500 Subject: [PATCH] Changes in njoy.py --- openmc/data/njoy.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/openmc/data/njoy.py b/openmc/data/njoy.py index fbb26be05e..70351a7721 100644 --- a/openmc/data/njoy.py +++ b/openmc/data/njoy.py @@ -300,7 +300,7 @@ def make_ace(filename, temperatures=None, acer=True, xsdir=None, If the ENDF file contains multiple material evaluations, this argument indicates which evaluation should be used. smoothing : bool, optional - If the smoothing option in ACER is on (1) or off (0) in the card 6. + If the smoothing option (ACER card 6) is on (True) or off (False). **kwargs Keyword arguments passed to :func:`openmc.data.njoy.run` @@ -383,10 +383,7 @@ def make_ace(filename, temperatures=None, acer=True, xsdir=None, # acer if acer: - if smoothing is True: - ismoothing = 1 - else: - ismoothing = 0 + ismoothing = int(smoothing) nacer_in = nlast for i, temperature in enumerate(temperatures): # Extend input with an ACER run for each temperature