Add more testing for maps
In pykat/test/test_scripts/physics/test_maps.py
we need to add checks to ensure that each of the methods are working. The script should check that all the various maps get created without exceptions. Currently this is only simply written for curvedmap
.
Methods that generate a numerical output should print the result (assuming it is a small array of numbers) and compare them to values known to be true using assert
, e.g.:
reference = [1,2,3,4]
output = method.compute()
assert(reference == output)
For large data save known output as numpy file which is loaded.
There are now various map format readers. A format from each should be included in the test folder and a script written to read the maps.