CIRA-Pulsars-and-Transients-Group / vcsbeam

Beamforms MWA-VCS data
Other
3 stars 1 forks source link

Unit testing, error checking and debug mode #48

Open bwmeyers opened 5 months ago

bwmeyers commented 5 months ago

There's a lack of error checking for various functions throughout. Further to that point, there are minimal (if any) unit tests for various critical functions, which is something we really should resolve if we want to save ourselves pain in the future.

Related, but not necessarily required here is that we can make better use of some debugging code in places where it makes sense. Unit tests will nominally help minimise the number we need, but they can be helpful when developing new features, etc. There are some examples already in the code, and simply requires an additional argument to the compiler.

bwmeyers commented 5 months ago

Here I'm ordering the three main tasks in (I think) order of increasing difficulty.

Debugging:

Error checking:

Unit testing: