armi.bookkeeping.db.compareDB module¶
Use the generic API of the database class to compare two ARMI databases
-
class
armi.bookkeeping.db.compareDB.DMNames[source]¶ Bases:
objectCommon names for aspects of the data model in ARMI
-
TIMESTEPS= 'timesteps'¶
-
REACTORS= 'reactors'¶
-
ASSEMBLIES= 'assemblies'¶
-
BLOCKS= 'blocks'¶
-
-
class
armi.bookkeeping.db.compareDB.DatabaseComparer(ref, src, exclusion: Optional[Sequence[str]] = None, weights=None, tolerance=0.01, selection=None, timestepMatchup=None)[source]¶ Bases:
objectThis class facilitates the comparison of two databases
-
armi.bookkeeping.db.compareDB.compare(src, ref, weight)[source]¶ Compare two values, with a leaning towards treating them as numbers
Returns the % difference between the two. Currently treats non-numeric values very naively as all-or-nothing similarities