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