Skip to content

Commit

Permalink
Releasing v0.2.7 (#1276)
Browse files Browse the repository at this point in the history
Thanks to Arrielle and Tony for the lift.
  • Loading branch information
john-science authored May 24, 2023
1 parent aa6b7f2 commit 328458c
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 31 deletions.
2 changes: 1 addition & 1 deletion armi/bookkeeping/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def loadOperator(pathToDb, loadCycle, loadNode, allowMissing=False):
"""
# `import armi` doesn't work if imported at top
from armi import cases
from armi import settings

if not os.path.exists(pathToDb):
raise ValueError(
Expand All @@ -145,6 +144,7 @@ def loadOperator(pathToDb, loadCycle, loadNode, allowMissing=False):
thisCase = cases.Case(cs)

r = db.load(loadCycle, loadNode, allowMissing=allowMissing)

settings.setMasterCs(cs)

# Update the global assembly number because, if the user is loading a reactor from
Expand Down
7 changes: 2 additions & 5 deletions armi/materials/tests/test_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def test_getMolFracPuO2(self):
ref = 0.209
self.assertAlmostEqual(self.mat.getMolFracPuO2(), ref, delta=ref * 0.001)

def test_getMolFracPuO2(self):
def test_getMeltingPoint(self):
ref = 2996.788765
self.assertAlmostEqual(self.mat.meltingPoint(), ref, delta=ref * 0.001)

Expand Down Expand Up @@ -1611,17 +1611,14 @@ def test_linearExpansion(self):
cur = 13.3e-6
self.assertAlmostEqual(ref, cur, delta=abs(ref * 0.001))

def test_linearExpansion(self):
def test_linearExpansionHotter(self):
ref = self.mat.linearExpansion(Tk=873.15)
cur = 15.6e-6
self.assertAlmostEqual(ref, cur, delta=abs(ref * 0.001))

def test_propertyValidTemperature(self):
self.assertGreater(len(self.mat.propertyValidTemperature), 0)

def test_propertyValidTemperature(self):
self.assertGreater(len(self.mat.propertyValidTemperature), 0)


class CaH2_TestCase(_Material_Test, unittest.TestCase):
MAT_CLASS = materials.CaH2
Expand Down
12 changes: 4 additions & 8 deletions armi/reactor/blueprints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,15 @@
# optionally extra settings (note this is probably going to be a removed feature)
# hotChannelFactors: TWRPclad
Examples
--------
>>> design = blueprints.Blueprints.load(self.yamlString)
>>> print(design.gridDesigns)
Notes
-----
The blueprints system was built to enable round trip translations between
text representations of input and objects in the code.
"""
import copy
import os
Expand All @@ -84,13 +80,13 @@
from armi import getPluginManager, getPluginManagerOrFail
from armi import plugins
from armi import runLog
from armi.utils.customExceptions import InputError
from armi.nucDirectory import nuclideBases
from armi.reactor import assemblies
from armi.reactor import geometry
from armi.reactor import systemLayoutInput
from armi.reactor.flags import Flags
from armi.scripts import migration
from armi.utils.customExceptions import InputError

from armi.utils import textProcessors
from armi.settings.fwSettings.globalSettings import (
Expand All @@ -106,13 +102,13 @@
# NOTE: using non-ARMI-standard imports because these are all a part of this package,
# and using the module imports would make the attribute definitions extremely long
# without adding detail
from armi.reactor.blueprints.reactorBlueprint import Systems, SystemBlueprint
from armi.reactor.blueprints import isotopicOptions
from armi.reactor.blueprints.assemblyBlueprint import AssemblyKeyedList
from armi.reactor.blueprints.blockBlueprint import BlockKeyedList
from armi.reactor.blueprints.componentBlueprint import ComponentKeyedList
from armi.reactor.blueprints.componentBlueprint import ComponentGroups
from armi.reactor.blueprints import isotopicOptions
from armi.reactor.blueprints.componentBlueprint import ComponentKeyedList
from armi.reactor.blueprints.gridBlueprint import Grids, Triplet
from armi.reactor.blueprints.reactorBlueprint import Systems, SystemBlueprint
from armi.reactor.converters import axialExpansionChanger

context.BLUEPRINTS_IMPORTED = True
Expand Down
2 changes: 1 addition & 1 deletion armi/reactor/blueprints/isotopicOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"""
import yamlize

from armi.utils import units
from armi import materials
from armi import runLog
from armi.nucDirectory import elements
from armi.nucDirectory import nucDir
from armi.nucDirectory import nuclideBases
from armi.utils import densityTools
from armi.utils import units
from armi.utils.customExceptions import InputError
from armi.physics.neutronics.fissionProductModel.fissionProductModelSettings import (
CONF_FP_MODEL,
Expand Down
2 changes: 1 addition & 1 deletion armi/utils/tests/test_mathematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def test_resampleStepwiseAvgNpArray(self):
self.assertEqual(yout[2], 0)
self.assertEqual(yout[3], 0)

def test_resampleStepwiseAvgNpArray(self):
def test_resampleStepwiseAvgNpArrayAverage(self):
"""Test resampleStepwise() summing when some of the values are arrays"""
xin = [0, 1, 2, 3, 4]
yin = [11, np.array([1, 1]), np.array([2, 2]), 44]
Expand Down
42 changes: 27 additions & 15 deletions doc/release/0.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,52 @@
ARMI v0.2 Release Notes
=======================

ARMI v0.2.7
ARMI v0.2.8
===========
Release Date: TBD

What's new in ARMI
------------------
#. Removed ``metadata`` setting section, and created ``versions``. (`PR#1179 <https://github.com/terrapower/armi/pull/1274>`_)
#. Remove unused `HCFcoretype` setting. (`PR#1179 <https://github.com/terrapower/armi/pull/1179>`_)
#. TBD

Bug fixes
---------
#. TBD


ARMI v0.2.7
===========
Release Date: 2023-05-24

What's new in ARMI
------------------
#. The method ``Material.density3`` is now called ``density``, and the old ``density`` is now called ``pseudoDensity``. (`PR#1163 <https://github.com/terrapower/armi/pull/1163>`_)
#. Removed ``metadata`` setting section, and created ``versions``. (`PR#1274 <https://github.com/terrapower/armi/pull/1274>`_)
#. Remove unused ``HCFcoretype`` setting. (`PR#1179 <https://github.com/terrapower/armi/pull/1179>`_)
#. Use ``minimumNuclideDensity`` setting when generating macroscopic XS. (`PR#1248 <https://github.com/terrapower/armi/pull/1248>`_)
#. Introduce new ``LatticePhysicsFrequency`` setting to control lattice physics calculation. (`PR#1239 <https://github.com/terrapower/armi/pull/1239>`_)
#. Added new setting ``assemFlagsToSkipAxialExpansion`` to enable users to list flags of assemblies to skip axial expansion. (`PR#1235 <https://github.com/terrapower/armi/pull/1235>`_)
#. Added documentation for the thermal expansion approach used in ARMI. (`PR#1204 <https://github.com/terrapower/armi/pull/1204>`_)
#. Use TemporaryDirectoryChanger for executer.run() so dirs are cleaned up during run. (`PR#1219 <https://github.com/terrapower/armi/pull/1219>`_)
#. Use ``TemporaryDirectoryChanger`` for ``executer.run()`` so dirs are cleaned up during run. (`PR#1219 <https://github.com/terrapower/armi/pull/1219>`_)
#. New option ``copyOutput`` for globalFluxInterface to not copy output back to working directory. (`PR#1218 <https://github.com/terrapower/armi/pull/1218>`_, `PR#1227 <https://github.com/terrapower/armi/pull/1227>`_)
#. `Executer` class has a ``dcType`` attribute to define the type of ``DirectoryChanger`` it will use. (`PR#1228 <https://github.com/terrapower/armi/pull/1228>`_)
#. Added new setting ``assemFlagsToSkipAxialExpansion`` to enable users to list flags of assemblies to skip axial expansion. (`PR#1235 <https://github.com/terrapower/armi/pull/1235>`_)
#. Enabling one-way (upwards) axial expansion of control assemblies. (`PR#1226 <https://github.com/terrapower/armi/pull/1226>`_)
#. Implement control rod decusping option for uniform mesh converter. (`PR#1229 <https://github.com/terrapower/armi/pull/1229>`_)
#. createRepresentativeBlocksFromExistingBlocks() now returns the mapping of original to new XS IDs. (`PR#1217 <https://github.com/terrapower/armi/pull/1217>`_)
#. Added a capability to prioritize mpi action execution and exclusivity. (`PR#1237 <https://github.com/terrapower/armi/pull/1237>`_)
#. Use ``minimumNuclideDensity`` setting when generating macroscopic XS. (`PR#1248 <https://github.com/terrapower/armi/pull/1248>`_)
#. ``createRepresentativeBlocksFromExistingBlocks`` now returns the mapping of original to new XS IDs. (`PR#1217 <https://github.com/terrapower/armi/pull/1217>`_)
#. Added a capability to prioritize ``MpiAction`` execution and exclusivity. (`PR#1237 <https://github.com/terrapower/armi/pull/1237>`_)
#. Improve support for single component axial expansion and general cleanup of axial expansion unit tests. (`PR#1230 <https://github.com/terrapower/armi/pull/1230>`_)
#. New cross section group representative block type for 1D cylindrical models. (`PR#1238 <https://github.com/terrapower/armi/pull/1238>`_)
#. Store the axial expansion target component name as a block parameter. (`PR#1256 https://github.com/terrapower/armi/pull/1256`_)
#. Store the axial expansion target component name as a block parameter. (`PR#1256 <https://github.com/terrapower/armi/pull/1256>`_)
#. When using non-uniform mesh, detailed fission/activation products have cross sections generated to avoid blocks without xs data. (`PR#1257 <https://github.com/terrapower/armi/pull/1257>`_)
#. Fix a bug in database comparison. (`PR#1258 <https://github.com/terrapower/armi/pull/1258>`_)
#. Introduce new LatticePhysicsFrequency setting to control lattice physics calculation. (`PR#1239 <https://github.com/terrapower/armi/pull/1239>`_)
#. TBD
#. Made sure all material classes could be resolved via name. (`PR#1270 <https://github.com/terrapower/armi/pull/1270>`_)
#. Read flux directly from output into Gamma uniform mesh instead of mapping it in from block params. (`PR#1213 <https://github.com/terrapower/armi/pull/1213>`_)
#. Forced GAMISO/PMATRX file path extensions to be lower case for linux support. (`PR#1216 <https://github.com/terrapower/armi/pull/1216>`_)

Bug fixes
---------
#. Read flux directly from output into Gamma uniform mesh instead of mapping it in from block params. (`PR#1213 <https://github.com/terrapower/armi/pull/1213>`_)
#. Force GAMISO/PMATRX file path extensions to be lower case for linux support (`PR#1216 <https://github.com/terrapower/armi/pull/1216>`_)
#. Fixed a bug in database comparison. (`PR#1258 <https://github.com/terrapower/armi/pull/1258>`_)
#. Fixed an invalid assumption on the lattice physics and cross section manager interfaces when using tight coupling for snapshot runs. (`PR#1206 <https://github.com/terrapower/armi/pull/1206>`_)
#. Fixed a bug where the precision used to determine the axial submesh was too small. (`PR#1225 <https://github.com/terrapower/armi/pull/1225>`_)
#. Made sure all material classes could be resolved via name (`PR#1270 <https://github.com/terrapower/armi/pull/1270>`)


ARMI v0.2.6
Expand Down

0 comments on commit 328458c

Please sign in to comment.