Open RemiLehe opened 1 year ago
Also related to #23.
- Read the openPMD file and check the fields.
What kind of checks to you imagine? In general I can think of something like:
iteration=0
) with a seperate call of the profile functionYes, these kind of tests would be very useful. No need to test all profiles, so just metadata + some rough physical quantities for a Gaussian profile (mostly checking that e.g. the array does not contain NaNs) would be enough.
(related to #34)
Our current CI test only dumps the field to an openPMD file and makes sure that this is not crashing. However, it would be good to check the actual values.
Maybe we could build a template test file that would work for any profile, and then simply loop through our existing profiles and:
lasy
profile