armi: r.core.growToFullCore() error when loading from database
Discussed with @jakehader. When loading a reactor using a case settings file, mechanical team is able to grow to full core. When loading a reactor object from a database, a runtime error is thrown when growing to full core. It appears that with the latter method, the global assembly number is set incorrectly.
Works:
import armi
o = armi.init(fName='myCaseSettings.yaml')
o.r.core.growToFullCore(cs)
Throws RuntimeError:
from armi.bookkeeping.db import databaseFactory
db = databaseFactory('myDatabaseName.h5','r')
with db:
r = db.load(5,2)
r.core.growToFullCore(cs)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
I am saying that I worked with Jason when he was having this issue and the
loadfunction on the database3 appears to not call that update assembly numbers (if I remember correctly now).Sure thing, @john-science. Here’s the stack trace when running
r.core.growToFullCore(cs):