punchbowl.level3.tests.test_velocity#

Attributes#

Functions#

synthetic_data(tmpdir)

Create synthetic compressed FITS data from NDCube instances for testing.

test_shape_matching(synthetic_data)

Test that the output shape matches the expected configuration.

test_no_nans_or_negatives(synthetic_data)

Test that the output does not contain NaNs or negative values.

test_with_bad_data(tmpdir)

Test the function with intentionally bad data.

test_sample_radial_outflows(tmpdir)

Test the function with sample radial outflows.

Module Contents#

punchbowl.level3.tests.test_velocity.THIS_DIRECTORY#
punchbowl.level3.tests.test_velocity.synthetic_data(tmpdir)#

Create synthetic compressed FITS data from NDCube instances for testing.

This fixture generates a list of file paths for FITS files containing random NDCube data. These files are written to a temporary directory and removed after the test session. Each file includes: - A 128x128 array of random data. - WCS metadata specifying helioprojective coordinates. - Normalized metadata according to the specified schema. - Uncertainty data initialized to zero.

Returns:

Paths to the generated FITS files.

Return type:

list of str

punchbowl.level3.tests.test_velocity.test_shape_matching(synthetic_data)#

Test that the output shape matches the expected configuration.

punchbowl.level3.tests.test_velocity.test_no_nans_or_negatives(synthetic_data)#

Test that the output does not contain NaNs or negative values.

punchbowl.level3.tests.test_velocity.test_with_bad_data(tmpdir)#

Test the function with intentionally bad data.

punchbowl.level3.tests.test_velocity.test_sample_radial_outflows(tmpdir)#

Test the function with sample radial outflows.