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_flags module
- armi.utils.tests.test_hexagon module
- 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()
- 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
- 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_listOfDictsWithMissingKeys()TestTabulateInputs.test_listOfDictsFirstrow()TestTabulateInputs.test_listOfDictsWithDictOfHeaders()TestTabulateInputs.test_listOfDictsWithListOfHeaders()TestTabulateInputs.test_listOfOrdereddicts()TestTabulateInputs.test_listBytes()
TestTabulateInternalTestTabulateInternal.test_alignColumnDecimal()TestTabulateInternal.test_alignColumnDecimalWithThousandSeparators()TestTabulateInternal.test_alignColumnDecimalWithIncorrectThousandSeparators()TestTabulateInternal.test_alignColumnNone()TestTabulateInternal.test_alignColumnMultiline()TestTabulateInternal.test_alignCellVeriticallyOneLineOnly()TestTabulateInternal.test_alignCellVeriticallyTopSingleTextMultiplePad()TestTabulateInternal.test_alignCellVeriticallyCenterSingleTextMultiplePad()TestTabulateInternal.test_alignCellVeriticallyBottomSingleTextMultiplePad()TestTabulateInternal.test_alignCellVeriticallyTopMultiTextMultiplePad()TestTabulateInternal.test_alignCellVeriticallyCenterMultiTextMultiplePad()TestTabulateInternal.test_alignCellVeriticallyBottomMultiTextMultiplePad()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_plainHeaderless()TestTabulateOutput.test_plainMultilineHeaderless()TestTabulateOutput.test_plainMultiline()TestTabulateOutput.test_plainMultilineWithLinks()TestTabulateOutput.test_plainMultilineWithEmptyCells()TestTabulateOutput.test_plainMultilineWithEmptyCellsHeaderless()TestTabulateOutput.test_plainMaxcolwidthAutowraps()TestTabulateOutput.test_plainMaxcolwidthAutowrapsWithSep()TestTabulateOutput.test_maxColWidthsingleValue()TestTabulateOutput.test_maxcolwidthPadTailingWidths()TestTabulateOutput.test_maxcolwidthHonorDisableParsenum()TestTabulateOutput.test_plainmaxHeaderColWidthsAutowraps()TestTabulateOutput.test_simple()TestTabulateOutput.test_simpleWithSepLine()TestTabulateOutput.test_readmeExampleWithSep()TestTabulateOutput.test_simpleMultiline2()TestTabulateOutput.test_simpleMultiline2WithSepLine()TestTabulateOutput.test_simpleHeaderless()TestTabulateOutput.test_simpleHeaderlessWithSepLine()TestTabulateOutput.test_simpleMultilineHeaderless()TestTabulateOutput.test_simpleMultiline()TestTabulateOutput.test_simpleMultilineWithLinks()TestTabulateOutput.test_simpleMultilineWithEmptyCells()TestTabulateOutput.test_simpleMultilineWithEmptyCellsHeaderless()TestTabulateOutput.test_github()TestTabulateOutput.test_grid()TestTabulateOutput.test_gridHeaderless()TestTabulateOutput.test_gridMultilineHeaderless()TestTabulateOutput.test_gridMultiline()TestTabulateOutput.test_gridMultilineWithEmptyCells()TestTabulateOutput.test_gridMultilineWithEmptyCellsHeaderless()TestTabulateOutput.test_pretty()TestTabulateOutput.test_prettyHeaderless()TestTabulateOutput.test_prettyMultilineHeaderless()TestTabulateOutput.test_prettyMultiline()TestTabulateOutput.test_prettyMultilineWithLinks()TestTabulateOutput.test_prettyMultilineWithEmptyCells()TestTabulateOutput.test_prettyMultilineWithEmptyCellsHeaderless()TestTabulateOutput.test_rst()TestTabulateOutput.test_rstWithEmptyValuesInFirstColumn()TestTabulateOutput.test_rstHeaderless()TestTabulateOutput.test_rstMultiline()TestTabulateOutput.test_rstMultilineWithLinks()TestTabulateOutput.test_rstMultilineWithEmptyCells()TestTabulateOutput.test_rstMultilineWithEmptyCellsHeaderless()TestTabulateOutput.test_noData()TestTabulateOutput.test_emptyData()TestTabulateOutput.test_noDataWithoutHeaders()TestTabulateOutput.test_emptyDataWithoutHeaders()TestTabulateOutput.test_intFmt()TestTabulateOutput.test_emptyDataWithHeaders()TestTabulateOutput.test_floatFmt()TestTabulateOutput.test_floatFmtMulti()TestTabulateOutput.test_colAlignMulti()TestTabulateOutput.test_colAlignMultiWithSepLine()TestTabulateOutput.test_columnGlobalAndSpecificAlignment()TestTabulateOutput.test_headersGlobalAndSpecificAlignment()TestTabulateOutput.test_colAlignOrheadersAlignTooLong()TestTabulateOutput.test_floatConversions()TestTabulateOutput.test_missingVal()TestTabulateOutput.test_missingValMulti()TestTabulateOutput.test_columnAlignment()TestTabulateOutput.test_dictLikeWithIndex()TestTabulateOutput.test_listOfListsWithIndex()TestTabulateOutput.test_listOfListsWithIndexWithSepLine()TestTabulateOutput.test_listOfListsWithSuppliedIndex()TestTabulateOutput.test_listOfListsWithIndexFirstrow()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_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()
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()