armi.utils.tests package
Submodules
- armi.utils.tests.test_asciimaps module
TestAsciiMapsTestAsciiMaps.test_cartesian()TestAsciiMaps.test_hexThird()TestAsciiMaps.test_hexWithHoles()TestAsciiMaps.test_hexWithEmptyRow()TestAsciiMaps.test_troublesomeHexThird()TestAsciiMaps.test_hexFullCornersUpSpotCheck()TestAsciiMaps.test_hexFullCornersUp()TestAsciiMaps.test_hexFullFlatsUp()TestAsciiMaps.test_hexFullFlat()TestAsciiMaps.test_hexSmallFlat()TestAsciiMaps.test_flatHexBases()
- armi.utils.tests.test_codeTiming module
- armi.utils.tests.test_custom_exceptions module
CustomExceptionTestsCustomExceptionTests.exampleInfoMessage()CustomExceptionTests.test_info_decorator()CustomExceptionTests.exampleImportantMessage()CustomExceptionTests.test_important_decorator()CustomExceptionTests.exampleWarnMessage()CustomExceptionTests.test_warn_decorator()CustomExceptionTests.exampleWarnWhenRootMessage()CustomExceptionTests.test_warn_when_root_decorator()
- armi.utils.tests.test_densityTools module
UraniumOxideTestDensityToolsTestDensityTools.test_expandElementalMassFracsToNuclides()TestDensityTools.test_expandElementalZeroMassFrac()TestDensityTools.test_getChemicals()TestDensityTools.test_expandElement()TestDensityTools.test_applyIsotopicsMix()TestDensityTools.test_getNDensFromMasses()TestDensityTools.test_getMassFractions()TestDensityTools.test_calculateNumberDensity()TestDensityTools.test_getMassInGrams()TestDensityTools.test_normalizeNuclideList()TestDensityTools.test_formatMaterialCard()
- armi.utils.tests.test_directoryChangers module
ExpectedExceptionTestDirectoryChangersTestDirectoryChangers.test_mpiAction()TestDirectoryChangers.test_mpiActionFailsOnNonexistentPath()TestDirectoryChangers.test_exception()TestDirectoryChangers.test_exception_disabled()TestDirectoryChangers.test_change_to_nonexisting_fails()TestDirectoryChangers.test_change_to_nonexisting_works_forced()TestDirectoryChangers.test_temporary_cleans()TestDirectoryChangers.test_file_retrieval()TestDirectoryChangers.test_file_retrieval_missing_file()
- armi.utils.tests.test_directoryChangersMpi module
- armi.utils.tests.test_flags module
ExampleFlagTestFlagTestFlag.test_auto()TestFlag.test_extend()TestFlag.test_collision_extension()TestFlag.test_collision_creation()TestFlag.test_bool()TestFlag.test_inclusion()TestFlag.test_bitwise()TestFlag.test_iteration()TestFlag.test_hashable()TestFlag.test_getitem()TestFlag.test_duplicateFlags()TestFlag.test_soManyFlags()
- armi.utils.tests.test_hexagon module
TestHexagonTestHexagon.N_FUZZY_DRAWSTestHexagon.test_hexagon_area()TestHexagon.test_numPositionsInRing()TestHexagon.test_rotatedCellCenter()TestHexagon.test_rotatedFirstRing()TestHexagon.test_rotateFuzzy()TestHexagon.test_positionsUpToRing()TestHexagon.test_rotatedCellIndexErrors()TestHexagon.test_rotatedCellOrientationErrors()TestHexagon.test_indexWithNoRotation()
- armi.utils.tests.test_iterables module
TestIterablesTestIterables.test_flatten()TestIterables.test_chunk()TestIterables.test_split()TestIterables.test_packingAndUnpackingBinaryStrings()TestIterables.test_packingAndUnpackingHexStrings()TestIterables.test_sequenceInit()TestIterables.test_sequence()TestIterables.test_copySequence()TestIterables.test_extendSequence()TestIterables.test_appendSequence()TestIterables.test_addingSequences()TestIterables.test_listPivot()TestIterables.test_arrayPivot()
- armi.utils.tests.test_mathematics module
TestMathTestMath.test_average1DWithinTolerance()TestMath.test_average1DWithinToleranceInvalid()TestMath.test_convertToSlice()TestMath.test_efmt()TestMath.test_expandRepeatedFloats()TestMath.test_findClosest()TestMath.test_findNearestValue()TestMath.test_fixThreeDigitExp()TestMath.test_getFloat()TestMath.test_getStepsFromValues()TestMath.test_isMonotonic()TestMath.test_linearInterpolation()TestMath.test_minimizeScalarFunc()TestMath.test_newtonsMethod()TestMath.test_parabola()TestMath.test_parabolicInterpolation()TestMath.test_relErr()TestMath.test_resampleStepwiseAvg0()TestMath.test_resampleStepwiseAvg1()TestMath.test_resampleStepwiseAvg2()TestMath.test_resampleStepwiseAvg3()TestMath.test_resampleStepwiseAvg4()TestMath.test_resampleStepwiseAvg5()TestMath.test_resampleStepwiseAvg6()TestMath.test_resampleStepwiseAvg7()TestMath.test_resampleStepwiseSum0()TestMath.test_resampleStepwiseSum1()TestMath.test_resampleStepwiseSum2()TestMath.test_resampleStepwiseSum3()TestMath.test_resampleStepwiseSum4()TestMath.test_resampleStepwiseSum5()TestMath.test_resampleStepwiseSum6()TestMath.test_resampleStepwiseSum7()TestMath.test_resampleStepwiseAvgAllNones()TestMath.test_resampleStepwiseAvgOneNone()TestMath.test_resampleStepwiseSumAllNones()TestMath.test_resampleStepwiseSumOneNone()TestMath.test_resampleStepwiseAvgComplicatedNone()TestMath.test_resampleStepwiseAvgNpArray()TestMath.test_resampleStepwiseAvgNpArrayAverage()TestMath.test_rotateXY()
- armi.utils.tests.test_outputCache module
- armi.utils.tests.test_parsing module
- armi.utils.tests.test_pathTools module
PathToolsTestsPathToolsTests.test_copyOrWarnFile()PathToolsTests.test_copyOrWarnDir()PathToolsTests.test_separateModuleAndAttribute()PathToolsTests.test_importCustomModule()PathToolsTests.test_moduleAndAttributeExist()PathToolsTests.test_cleanPathNoMpi()PathToolsTests.test_isFilePathNewer()PathToolsTests.test_isAccessible()
- armi.utils.tests.test_plotting module
- armi.utils.tests.test_properties module
- armi.utils.tests.test_reportPlotting module
- armi.utils.tests.test_tabulate module
TestTabulateAPITestTabulateInputsTestTabulateInputs.test_iterableOfEmpties()TestTabulateInputs.test_iterableOfIterables()TestTabulateInputs.test_iterableOfIterablesHeaders()TestTabulateInputs.test_iterableOfIterablesFirstrow()TestTabulateInputs.test_listOfLists()TestTabulateInputs.test_listOfListsFirstrow()TestTabulateInputs.test_listOfListsKeys()TestTabulateInputs.test_dictLike()TestTabulateInputs.test_numpy2d()TestTabulateInputs.test_numpy2dFirstrow()TestTabulateInputs.test_numpy2dKeys()TestTabulateInputs.test_numpyRecordArray()TestTabulateInputs.test_numpyRecordArrayKeys()TestTabulateInputs.test_numpyRecordArrayHeaders()TestTabulateInputs.test_listOfNamedtuples()TestTabulateInputs.test_listOfNamedtuplesKeys()TestTabulateInputs.test_listOfDicts()TestTabulateInputs.test_listOfUserdicts()TestTabulateInputs.test_listOfDictsKeys()TestTabulateInputs.test_listOfUserdictsKeys()TestTabulateInputs.test_listOfDictsMissingKeys()TestTabulateInputs.test_listOfDictsFirstrow()TestTabulateInputs.test_listOfDictsDictOfHeaders()TestTabulateInputs.test_listOfDictsListOfHeaders()TestTabulateInputs.test_listOfOrdereddicts()TestTabulateInputs.test_listBytes()TestTabulateInputs.test_tightCouplingExample()
TestTabulateInternalTestTabulateInternal.test_alignColumnDecimal()TestTabulateInternal.test_alignColDecThousandSeps()TestTabulateInternal.test_alignColDecIncorrectThousandSeps()TestTabulateInternal.test_alignColumnNone()TestTabulateInternal.test_alignColumnMultiline()TestTabulateInternal.test_alignCellVeriticallyOneLineOnly()TestTabulateInternal.test_alignCellVertTopSingleTxtMultiPad()TestTabulateInternal.test_alignCellVertCenterSingleTxtMultiPad()TestTabulateInternal.test_alignCellVertBottomSingleTxtMultiPad()TestTabulateInternal.test_alignCellVertTopMultiTxtMultiPad()TestTabulateInternal.test_alignCellVertCenterMultiTxtMultiPad()TestTabulateInternal.test_alignCellVertBottomMultiTxtMultiPad()TestTabulateInternal.test_assortedRareEdgeCases()TestTabulateInternal.test_bool()TestTabulateInternal.test_buildLine()TestTabulateInternal.test_buildRow()TestTabulateInternal.test_format()TestTabulateInternal.test_isMultiline()TestTabulateInternal.test_multilineWidth()TestTabulateInternal.test_normalizeTabularData()TestTabulateInternal.test_type()TestTabulateInternal.test_visibleWidth()TestTabulateInternal.test_wrapTextToColWidths()
TestTabulateOutputTestTabulateOutput.test_plain()TestTabulateOutput.test_plainNoHeader()TestTabulateOutput.test_plainMultilineNoHeader()TestTabulateOutput.test_plainMultiline()TestTabulateOutput.test_plainMultilineLinks()TestTabulateOutput.test_plainMultilineEmptyCells()TestTabulateOutput.test_plainMultilineEmptyCellsNoHeader()TestTabulateOutput.test_plainMaxcolwidthAutowraps()TestTabulateOutput.test_plainMaxcolwidthAutowrapsSep()TestTabulateOutput.test_maxColWidthsingleValue()TestTabulateOutput.test_maxcolwidthPadTailingWidths()TestTabulateOutput.test_maxcolwidthHonorDisableParsenum()TestTabulateOutput.test_plainmaxHeaderColWidthsAutowraps()TestTabulateOutput.test_simple()TestTabulateOutput.test_simpleSepLine()TestTabulateOutput.test_readmeExampleSep()TestTabulateOutput.test_simpleMultiline2()TestTabulateOutput.test_simpleMultiline2SepLine()TestTabulateOutput.test_simpleNoHeader()TestTabulateOutput.test_simpleNoHeaderSepLine()TestTabulateOutput.test_simpleMultilineNoHeader()TestTabulateOutput.test_simpleMultiline()TestTabulateOutput.test_simpleMultilineLinks()TestTabulateOutput.test_simpleMultilineEmptyCells()TestTabulateOutput.test_simpleMultilineEmptyCellsNoHeader()TestTabulateOutput.test_github()TestTabulateOutput.test_grid()TestTabulateOutput.test_gridNoHeader()TestTabulateOutput.test_gridMultilineNoHeader()TestTabulateOutput.test_gridMultiline()TestTabulateOutput.test_gridMultilineEmptyCells()TestTabulateOutput.test_gridMultilineEmptyCellsNoHeader()TestTabulateOutput.test_pretty()TestTabulateOutput.test_prettyNoHeader()TestTabulateOutput.test_prettyMultilineNoHeader()TestTabulateOutput.test_prettyMultiline()TestTabulateOutput.test_prettyMultilineLinks()TestTabulateOutput.test_prettyMultilineEmptyCells()TestTabulateOutput.test_prettyMultilineEmptyCellsNoHeader()TestTabulateOutput.test_rst()TestTabulateOutput.test_rstEmptyValuesInFirstColumn()TestTabulateOutput.test_rstNoHeader()TestTabulateOutput.test_rstMultiline()TestTabulateOutput.test_rstMultilineLinks()TestTabulateOutput.test_rstMultilineEmptyCells()TestTabulateOutput.test_rstMultilineEmptyCellsNoHeader()TestTabulateOutput.test_noData()TestTabulateOutput.test_emptyData()TestTabulateOutput.test_noDataNoHeader()TestTabulateOutput.test_emptyDataNoHeaders()TestTabulateOutput.test_intFmt()TestTabulateOutput.test_emptyDataHeader()TestTabulateOutput.test_floatFmt()TestTabulateOutput.test_floatFmtMulti()TestTabulateOutput.test_colAlignMulti()TestTabulateOutput.test_colAlignMultiSepLine()TestTabulateOutput.test_columnGlobalAndSpecificAlignment()TestTabulateOutput.test_headersGlobalAndSpecificAlignment()TestTabulateOutput.test_colAlignOrheadersAlignTooLong()TestTabulateOutput.test_floatConversions()TestTabulateOutput.test_missingVal()TestTabulateOutput.test_missingValMulti()TestTabulateOutput.test_columnAlignment()TestTabulateOutput.test_dictLikeIndex()TestTabulateOutput.test_listOfListsIndex()TestTabulateOutput.test_listOfListsIndexSepLine()TestTabulateOutput.test_listOfListsSuppliedIndex()TestTabulateOutput.test_listOfListsIndexFirstrow()TestTabulateOutput.test_disableNumParseDefault()TestTabulateOutput.test_disableNumParseTrue()TestTabulateOutput.test_disableNumParseList()
- armi.utils.tests.test_textProcessors module
- armi.utils.tests.test_triangle module
- armi.utils.tests.test_units module
- armi.utils.tests.test_utils module
TestGeneralUtilsTestGeneralUtils.test_getFileSHA1Hash()TestGeneralUtils.test_getFileSHA1HashDir()TestGeneralUtils.test_mergeableDictionary()TestGeneralUtils.test_createFormattedStrWithDelimiter()TestGeneralUtils.test_capStrLen()TestGeneralUtils.test_list2str()TestGeneralUtils.test_slantSplit()TestGeneralUtils.test_prependToList()TestGeneralUtils.test_plotMatrix()TestGeneralUtils.test_classesInHierarchy()TestGeneralUtils.test_codeTiming()TestGeneralUtils.test_safeCopy()TestGeneralUtils.test_safeMove()TestGeneralUtils.test_safeMoveDir()
CyclesSettingsTestsCyclesSettingsTests.detailedCyclesSettingsCyclesSettingsTests.simpleCyclesSettingsCyclesSettingsTests.powerFractionsDetailedSolutionCyclesSettingsTests.powerFractionsSimpleSolutionCyclesSettingsTests.cycleNamesDetailedSolutionCyclesSettingsTests.cycleNamesSimpleSolutionCyclesSettingsTests.availabilityFactorsDetailedSolutionCyclesSettingsTests.availabilityFactorsSimpleSolutionCyclesSettingsTests.stepLengthsDetailedSolutionCyclesSettingsTests.stepLengthsSimpleSolutionCyclesSettingsTests.cycleLengthsDetailedSolutionCyclesSettingsTests.cycleLengthsSimpleSolutionCyclesSettingsTests.burnStepsDetailedSolutionCyclesSettingsTests.burnStepsSimpleSolutionCyclesSettingsTests.nodesPerCycleDetailedSolutionCyclesSettingsTests.nodesPerCycleSimpleSolutionCyclesSettingsTests.maxBurnStepsDetailedSolutionCyclesSettingsTests.maxBurnStepsSimpleSolutionCyclesSettingsTests.test_getPowerFractions()CyclesSettingsTests.test_getCycleNames()CyclesSettingsTests.test_getAvailabilityFactors()CyclesSettingsTests.test_getStepLengths()CyclesSettingsTests.test_getCycleLengths()CyclesSettingsTests.test_getBurnSteps()CyclesSettingsTests.test_hasBurnup()CyclesSettingsTests.test_getMaxBurnSteps()CyclesSettingsTests.test_getNodesPerCycle()CyclesSettingsTests.test_getCycleNodeFromCumulativeStep()CyclesSettingsTests.test_getCycleNodeFromCumulativeNode()CyclesSettingsTests.test_getPreviousTimeNode()CyclesSettingsTests.test_getCumulativeNodeNum()