test_geff_import

Tests for GEFF import in motile_tracker using funtracks.

Classes

TestGeffImportBasic

Test basic GEFF import functionality.

TestGeffImportWithSegmentation

Test GEFF import with segmentation.

TestGeffImportWithFeatures

Test GEFF import with feature loading and computation.

TestGeffImportValidation

Test validation and error handling in GEFF import.

Functions

simple_geff_2d()

Create a simple 2D GEFF dataset for testing.

simple_geff_3d()

Create a simple 3D GEFF dataset for testing.

Module Contents

test_geff_import.simple_geff_2d()

Create a simple 2D GEFF dataset for testing.

test_geff_import.simple_geff_3d()

Create a simple 3D GEFF dataset for testing.

class test_geff_import.TestGeffImportBasic

Test basic GEFF import functionality.

test_import_2d_geff(simple_geff_2d)

Test importing a 2D GEFF dataset.

test_import_3d_geff(simple_geff_3d)

Test importing a 3D GEFF dataset.

test_import_with_scale(simple_geff_2d)

Test that scale is correctly applied.

test_node_attributes_imported(simple_geff_2d)

Test that node attributes are correctly imported.

class test_geff_import.TestGeffImportWithSegmentation

Test GEFF import with segmentation.

test_import_with_segmentation(simple_geff_2d, tmp_path)

Test importing GEFF with segmentation.

test_segmentation_relabeling(simple_geff_2d, tmp_path)

Test that segmentation is relabeled from seg_id to node_id.

class test_geff_import.TestGeffImportWithFeatures

Test GEFF import with feature loading and computation.

test_load_feature_from_geff(tmp_path)

Test loading a feature directly from GEFF.

test_recompute_feature_from_segmentation(tmp_path)

Test recomputing a feature from segmentation.

class test_geff_import.TestGeffImportValidation

Test validation and error handling in GEFF import.

test_missing_required_attribute(simple_geff_2d)

Test that missing required attributes raise an error.

test_duplicate_name_map_values(simple_geff_2d)

Test that duplicate values in name_map raise an error.