punchbowl.level3.tests.test_velocity#
Attributes#
Functions#
|
Create synthetic compressed FITS data from NDCube instances for testing. |
|
Test that the output shape matches the expected configuration. |
|
Tests that wind plots are generated and output to file. |
|
Test that the output does not contain NaNs or negative values. |
|
Test the function with intentionally bad data. |
|
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_wind_plot(synthetic_data)#
Tests that wind plots are generated and output to file.
- 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.