test_df_import_extended ======================= .. py:module:: test_df_import_extended .. autoapi-nested-parse:: Extended tests for DataFrame import via tracks_from_df. Classes ------- .. autoapisummary:: test_df_import_extended.TestDataFrameImportBasic test_df_import_extended.TestStringIDHandling test_df_import_extended.TestSegmentationHandling test_df_import_extended.TestFeatureHandling test_df_import_extended.TestEdgeCases test_df_import_extended.TestValidationErrors Functions --------- .. autoapisummary:: test_df_import_extended.simple_df_2d test_df_import_extended.df_3d Module Contents --------------- .. py:function:: simple_df_2d() Simple 2D DataFrame. .. py:function:: df_3d() 3D DataFrame. .. py:class:: TestDataFrameImportBasic Test basic DataFrame import. .. py:method:: test_import_2d(simple_df_2d) Test importing 2D DataFrame. .. py:method:: test_import_3d(df_3d) Test importing 3D DataFrame. .. py:method:: test_with_scale(simple_df_2d) Test importing with scale. .. py:method:: test_node_positions(simple_df_2d) Test that node positions are correctly imported. .. py:method:: test_edges_created(simple_df_2d) Test that edges are created from parent_id. .. py:class:: TestStringIDHandling Test handling of string IDs. .. py:method:: test_string_ids_converted() Test that string IDs are converted to integers. .. py:method:: test_string_id_relationships_preserved() Test that parent-child relationships preserved after conversion. .. py:class:: TestSegmentationHandling Test DataFrame import with segmentation. .. py:method:: test_with_2d_segmentation(simple_df_2d) Test importing with 2D segmentation. .. py:method:: test_relabeling_when_needed() Test that segmentation is relabeled when seg_id != id. .. py:method:: test_seg_id_matches_id(simple_df_2d) Test when seg_id matches id (no relabeling needed). .. py:class:: TestFeatureHandling Test feature computation and loading. .. py:method:: test_load_area_from_df() Test loading pre-computed area from DataFrame. .. py:method:: test_recompute_area_from_seg() Test recomputing area from segmentation. .. py:class:: TestEdgeCases Test edge cases and boundary conditions. .. py:method:: test_single_node() Test DataFrame with single node. .. py:method:: test_multiple_roots() Test multiple independent lineages. .. py:method:: test_division_event() Test cell division (one parent, two children). .. py:method:: test_long_track() Test a long track without divisions. .. py:method:: test_orphaned_node_raises_error() Test that node with invalid parent_id raises error. .. py:class:: TestValidationErrors Test that invalid data raises appropriate errors. .. py:method:: test_non_unique_ids() Test that non-unique IDs raise error. .. py:method:: test_missing_required_column() Test that missing required columns raise error.