Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewriting asciimaps to be functional #1767

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions armi/reactor/blueprints/gridBlueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
from ruamel.yaml import scalarstring

from armi.utils.customExceptions import InputError
from armi.utils import asciimaps
from armi.utils import asciimaps_functional as AF
from armi.utils.mathematics import isMonotonic
from armi.reactor import geometry, grids
from armi.reactor import blueprints
Expand Down Expand Up @@ -422,7 +422,7 @@ def _readGridContentsLattice(self):
self.readFromLatticeMap = True
symmetry = geometry.SymmetryType.fromStr(self.symmetry)
geom = geometry.GeomType.fromStr(self.geom)
latticeCls = asciimaps.asciiMapFromGeomAndDomain(self.geom, symmetry.domain)
latticeCls = AF.asciiMapFromGeomAndDomain(self.geom, symmetry.domain)
asciimap = latticeCls()
asciimap.readAscii(self.latticeMap)
self.gridContents = dict()
Expand Down Expand Up @@ -596,7 +596,7 @@ def saveToStream(stream, bluep, full=False, tryMap=False):
if gridDesign.readFromLatticeMap or tryMap:
symmetry = geometry.SymmetryType.fromStr(gridDesign.symmetry)

aMap = asciimaps.asciiMapFromGeomAndDomain(
aMap = AF.asciiMapFromGeomAndDomain(
gridDesign.geom, symmetry.domain
)()
aMap.asciiLabelByIndices = {
Expand Down
Loading
Loading