seismicrna.core.tests package
Submodules
- class seismicrna.core.tests.array_test.TestCalcInverse(methodName='runTest')
Bases:
TestCase- test_calc_inverse()
Invert an array with a known inverse.
- test_calc_inverse_fill_fwd()
Invert an array with a known inverse; fill forward.
- test_calc_inverse_fill_fwd_max()
- test_calc_inverse_fill_fwd_max_default()
- test_calc_inverse_fill_rev()
Invert an array with a known inverse; fill reverse.
- test_calc_inverse_fill_rev_max()
- test_calc_inverse_fill_rev_max_default()
- test_calc_inverse_max()
Invert an array with a known inverse.
- test_empty()
- test_empty_max()
- test_is_inverse()
Verify every position in the inverse of a random array.
- test_negative()
Negative values in the target are not permitted.
- test_repeated()
Repeated values in the target are not permitted.
- class seismicrna.core.tests.array_test.TestEnsureSameLength(methodName='runTest')
Bases:
TestCase- test_diff_lengths()
Unequal lengths are not permitted.
- test_other_dims()
Non-1D arrays are not valid.
- test_same_length()
The length is returned when the arrays share the length.
- class seismicrna.core.tests.array_test.TestFindDims(methodName='runTest')
Bases:
TestCase- test_0d()
- test_0d_1dim()
- test_0d_none()
- test_0d_nonzero()
- test_0d_nonzero_extra()
- test_1d()
- test_1d_0dim_none()
- test_1d_1d_crossed()
- test_1d_1d_separate()
- test_1d_1dim_none()
- test_1d_2d_congruent()
- test_1d_2d_crossed()
- test_1d_2dim()
- test_1d_2dim_none()
- test_1d_nonzero()
- test_2d()
- test_2d_1dim_none()
- test_2d_2d_congruent()
- test_2d_2d_crossed()
- test_2d_nonzero()
- test_empty()
- test_none_2d()
- class seismicrna.core.tests.array_test.TestFindTrueDists(methodName='runTest')
Bases:
TestCase- test_all_false()
- test_all_true()
- test_custom_1()
- test_custom_2()
- test_vs_slow()
- class seismicrna.core.tests.array_test.TestGetLength(methodName='runTest')
Bases:
TestCase- test_1d()
A 1D array has a length.
- test_other_dims()
Non-1D arrays are not valid.
- class seismicrna.core.tests.array_test.TestLocateElements(methodName='runTest')
Bases:
TestCase- test_locate_0()
- test_locate_1()
- test_locate_2()
- test_locate_invalid()
- class seismicrna.core.tests.array_test.TestTriangular(methodName='runTest')
Bases:
TestCase- test_whole_numbers()
- class seismicrna.core.tests.header_test.TestClustHeader(methodName='runTest')
Bases:
TestCase- test_clustered()
- test_clusts()
- test_index()
- test_iter_clust_indexes()
- test_level_keys()
- test_level_names()
- test_levels()
- test_max_order()
- test_min_order()
- test_modified_max_order()
- test_modified_min_order()
- test_modified_none()
- test_modified_rels()
- test_names()
- test_num_levels()
- test_orders()
- test_select_clust()
- test_select_clusts()
- test_select_extra()
- test_select_invalid_clust()
- test_select_invalid_order()
- test_select_none()
- test_select_order()
- test_select_order_clust_empty()
- test_select_order_clust_exist()
- test_select_orders()
- test_select_orders_clusts_exist()
- test_signature()
- class seismicrna.core.tests.header_test.TestConstants(methodName='runTest')
Bases:
TestCase- test_average_prefix()
- test_clust_name()
- test_cluster_prefix()
- test_order_name()
- test_rel_name()
- class seismicrna.core.tests.header_test.TestEqualHeaders(methodName='runTest')
Bases:
TestCase- test_clustheaders()
- test_different_types()
- test_relclustheaders()
- test_relheaders()
- class seismicrna.core.tests.header_test.TestFormatClustName(methodName='runTest')
Bases:
TestCase- test_positive()
- test_zero_zero_allowed()
- class seismicrna.core.tests.header_test.TestFormatClustNames(methodName='runTest')
Bases:
TestCase- test_positive_invalid_dups()
- test_positive_no_dups()
- test_positive_valid_dups()
- test_zero_zero_allowed()
- class seismicrna.core.tests.header_test.TestHeader(methodName='runTest')
Bases:
TestCase- test_abstract()
- class seismicrna.core.tests.header_test.TestIndexClusts(methodName='runTest')
Bases:
TestCase- test_valid()
- class seismicrna.core.tests.header_test.TestIndexOrderClusts(methodName='runTest')
Bases:
TestCase- test_valid()
- class seismicrna.core.tests.header_test.TestIndexOrders(methodName='runTest')
Bases:
TestCase- test_valid()
- class seismicrna.core.tests.header_test.TestIndexOrdersClusts(methodName='runTest')
Bases:
TestCase- test_valid()
- class seismicrna.core.tests.header_test.TestListClusts(methodName='runTest')
Bases:
TestCase- test_negative()
- test_positive()
- test_zero()
- class seismicrna.core.tests.header_test.TestListOrderClusts(methodName='runTest')
Bases:
TestCase- test_positive()
- test_zero()
- class seismicrna.core.tests.header_test.TestListOrders(methodName='runTest')
Bases:
TestCase- test_negative_none()
- test_negative_positive()
- test_negative_zero()
- test_positive_none()
- test_positive_positive()
- test_positive_zero()
- test_zero_none()
- test_zero_one()
- test_zero_two()
- test_zero_zero()
- class seismicrna.core.tests.header_test.TestListOrdersClusts(methodName='runTest')
Bases:
TestCase- test_positive_none()
- test_positive_positive()
- test_zero_none()
- test_zero_one()
- class seismicrna.core.tests.header_test.TestMakeHeader(methodName='runTest')
Bases:
TestCase- test_all()
- test_max_order()
- test_min_order()
- test_none()
- test_rels()
- class seismicrna.core.tests.header_test.TestParseHeader(methodName='runTest')
Bases:
TestCase- test_clust()
- test_extra_index_names()
- test_extra_values()
- test_invalid_numeric()
- test_missing_index_names()
- test_missing_values()
- test_none()
- test_nonnumeric()
- test_rel_index()
- test_rel_index_invalid_name()
- test_rel_index_repeated()
- test_rel_index_valid_name()
- test_rel_multiindex()
- test_relclust()
- class seismicrna.core.tests.header_test.TestRelClustHeader(methodName='runTest')
Bases:
TestCase- test_clustered()
- test_index()
- test_iter_clust_indexes()
- test_level_keys()
- test_level_names()
- test_levels()
- test_modified_all()
- test_modified_empty_rels()
- test_modified_max_order()
- test_modified_max_order_0()
- test_modified_none()
- test_modified_nullified()
- test_modified_rels()
- test_num_levels()
- test_select_clust()
- test_select_extra()
- test_select_extra_emptystr()
- test_select_extra_none()
- test_select_extra_zero()
- test_select_invalid_clust()
- test_select_invalid_order()
- test_select_invalid_rel()
- test_select_none()
- test_select_order()
- test_select_order_clust_empty()
- test_select_order_clust_exist()
- test_select_rel()
- test_signature()
- class seismicrna.core.tests.header_test.TestRelHeader(methodName='runTest')
Bases:
TestCase- test_clustered()
- test_clusts()
- test_index()
- test_iter_clust_indexes()
- test_level_keys()
- test_level_names()
- test_levels()
- test_max_order()
- test_min_order()
- test_modified_empty_rels()
- test_modified_max_order()
- test_modified_min_order()
- test_modified_none()
- test_modified_rels()
- test_names()
- test_num_levels()
- test_orders()
- test_rels_duplicated()
- test_rels_empty()
- test_rels_normal()
- test_select_extra()
- test_select_extra_zero()
- test_select_invalid()
- test_select_none()
- test_select_one_rels()
- test_select_rel()
- test_select_two_rels()
- test_signature()
- test_size()
- class seismicrna.core.tests.header_test.TestValidateOrderClust(methodName='runTest')
Bases:
TestCase- test_float_clust()
- test_float_order()
- test_negative_zero_allowed()
- test_one_zero_allowed()
- test_one_zero_unallowed()
- test_positive_positive()
- test_zero_negative_allowed()
- test_zero_one_allowed()
- test_zero_one_unallowed()
- test_zero_zero_allowed()
- test_zero_zero_unallowed()
- class seismicrna.core.tests.stats_test.TestCalcBetaMV(methodName='runTest')
Bases:
TestCase- test_scipy_beta()
- class seismicrna.core.tests.stats_test.TestCalcBetaParams(methodName='runTest')
Bases:
TestCase- test_invert()
- class seismicrna.core.tests.stats_test.TestCalcDirichletMV(methodName='runTest')
Bases:
TestCase- test_scipy_dirichlet()
- class seismicrna.core.tests.stats_test.TestCalcDirichletParams(methodName='runTest')
Bases:
TestCase- test_invert()
- seismicrna.core.tests.stats_test.rand_dirichlet_alpha(n: int)
Simulate n alpha parameters for a Dirichlet distribution.
- class seismicrna.core.tests.version_test.TestFormatVersion(methodName='runTest')
Bases:
TestCase- test_format_default()
- test_format_notag()
- test_format_prtag()
- class seismicrna.core.tests.version_test.TestParseVersion(methodName='runTest')
Bases:
TestCase- test_invalid_1()
- test_invalid_2()
- test_invalid_3()
- test_invalid_4()
- test_invalid_5()
- test_parse_default()
- test_parse_notag()
- test_parse_prtag_letter()
- test_parse_prtag_letters()
- test_parse_prtag_letters_numbers()