AdvancedPhotonSource / tike

Repository for ptychography software
http://tike.readthedocs.io
Other
29 stars 15 forks source link

TST: Add units tests for direct comparison with matlab #226

Open carterbox opened 2 years ago

carterbox commented 2 years ago

Purpose

Check for consistency between key/some/various MATLAB and Python functions.

Approach

First write a matlab script which generates a random input for a MATLAB function. Then record the inputs and outputs of the function in a v7.3 matlab file (hdf5). Compare the output of the corresponding Python code with the same inputs. Use single precision inputs and outputs to keep files below GitHub file limits.

Pre-Merge Checklists

Submitter

Reviewer