seismicrna.core.mu.tests package

Submodules

class seismicrna.core.mu.tests.compare_test.TestCalcArcsineDistance(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array2d()
test_both_ones()
test_both_zeros()
test_dataframe()
test_one_half()
test_series()
test_zero_half()
test_zero_one()
class seismicrna.core.mu.tests.compare_test.TestCalcCoeffDeterm(methodName='runTest')

Bases: TestCase

classmethod calc_true(x, y)

Calculate the “true” coefficient using a trusted method.

test_array0d()
test_array1d()
test_dataframe()
class seismicrna.core.mu.tests.compare_test.TestCalcMeanAbsFoldChangeOdds(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
class seismicrna.core.mu.tests.compare_test.TestCalcPearson(methodName='runTest')

Bases: TestCase

classmethod calc_true(x, y)

Calculate the “true” coefficient using a trusted method.

test_array0d()
test_array1d()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.compare_test.TestCalcSpearman(methodName='runTest')

Bases: TestCase

classmethod calc_true(x, y)

Calculate the “true” coefficient using a trusted method.

test_array0d()
test_array1d()
test_array1d_nan()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.compare_test.TestCalcSumAbsDiffLogOdds(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
class seismicrna.core.mu.tests.compare_test.TestCompareWindows(methodName='runTest')

Bases: TestCase

test_contiguous()
class seismicrna.core.mu.tests.compare_test.TestGetComp(methodName='runTest')

Bases: TestCase

test_comps()
class seismicrna.core.mu.tests.dim_test.TestCountPos(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.dim_test.TestCountsPos(methodName='runTest')

Bases: TestCase

test_array1d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.dim_test.TestCountsPosConsensus(methodName='runTest')

Bases: TestCase

test_empty()
test_equal()
test_unequal()
class seismicrna.core.mu.tests.frame_test.TestAutoReframe(methodName='runTest')

Bases: TestCase

test_reduce_0()
test_reduce_0_and_1()
test_reduce_none()
class seismicrna.core.mu.tests.frame_test.TestReframe(methodName='runTest')

Bases: TestCase

test_array_index()
test_array_index_index()
test_array_ints()
test_array_none()
test_dataframe()
test_float_index()
test_float_index_index()
test_float_index_index_index()
test_float_index_index_int()
test_float_index_int()
test_float_int_index()
test_float_ints()
test_float_none()
test_series()
class seismicrna.core.mu.tests.frame_test.TestReframeLike(methodName='runTest')

Bases: TestCase

test_array_array()
test_array_dataframe()
test_array_series()
test_dataframe_array()
test_dataframe_dataframe()
test_drop_array()
test_drop_dataframe()
test_drop_series()
test_float_array()
test_float_dataframe()
test_float_float()
test_float_series()
test_series_array()
test_series_series()
seismicrna.core.mu.tests.frame_test.broadcast_regex(vshape: tuple[int, ...], tshape: tuple[int, ...])

Get the error regex that would result from trying to broadcast values in the shape of vshape to the target shape of tshape.

Parameters:
  • vshape (tuple[int, ]) – Shape of the values to broadcast.

  • tshape (tuple[int, ]) – Shape of the target to which the values should be broadcast.

Returns:

Regular expression that can match the error message.

Return type:

str

seismicrna.core.mu.tests.frame_test.broadcastable(vshape: tuple[int, ...], tshape: tuple[int, ...])

Check whether values in the shape of vshape can be broadcast to the target shape of tshape.

Parameters:
  • vshape (tuple[int, ]) – Shape of the values to broadcast.

  • tshape (tuple[int, ]) – Shape of the target to which the values should be broadcast.

Returns:

Whether the value shape can be broadcast to the target shape.

Return type:

bool

class seismicrna.core.mu.tests.measure_test.TestCalcGini(methodName='runTest')

Bases: TestCase

test_all_equal_1d()
test_all_equal_2d()
test_all_zero_1d()
test_all_zero_2d()
test_distributed_1d()
test_empty_1d()
test_monopoly_1d()
class seismicrna.core.mu.tests.measure_test.TestCalcSignalNoise(methodName='runTest')

Bases: TestCase

test_1d()
test_2d()
test_empty_1d()
class seismicrna.core.mu.tests.nan_test.TestAnyNaN(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array2d()
test_array3d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.nan_test.TestAutoRemoveNaN(methodName='runTest')

Bases: TestCase

test_array()
class seismicrna.core.mu.tests.nan_test.TestAutoRemovesNaN(methodName='runTest')

Bases: TestCase

test_array()
class seismicrna.core.mu.tests.nan_test.TestNoNaN(methodName='runTest')

Bases: TestCase

test_array1d()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.nan_test.TestRemoveNaNs(methodName='runTest')

Bases: TestCase

test_array1d()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.nan_test.TestRemovesNaNs(methodName='runTest')

Bases: TestCase

test_array1d()
test_array2d()
test_array_series_dataframe()
test_array_series_dataframe_mismatched()
test_dataframe()
test_empty()
test_series()
class seismicrna.core.mu.tests.scale_test.TestCalcQuantile(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array1d_all_nan()
test_array1d_empty()
test_array1d_some_nan()
test_array2d()
test_array2d_one_col_nan()
test_array2d_one_row_nan()
test_dataframe()
test_invalid_quantiles()
test_series()
class seismicrna.core.mu.tests.scale_test.TestCalcRanks(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array2d()
test_array3d()
test_dataframe()
test_nan()
test_series()
class seismicrna.core.mu.tests.scale_test.TestNormalize(methodName='runTest')

Bases: TestCase

test_array0d()
test_array1d()
test_array1d_nan()
test_array2d()
test_dataframe()
test_series()
class seismicrna.core.mu.tests.scale_test.TestWinsorize(methodName='runTest')

Bases: TestCase

test_arrays()
test_dataframe()
test_series()