UCL-COMP0233-2023-2024 / RSE-Classwork

3 stars 65 forks source link

Automating `git bisect` - part V #31

Open dpshelio opened 11 months ago

dpshelio commented 11 months ago

Continuation from #30.

Now that you have created two arrays, can read and save them, compare expected values, and call external command from within Python.

Step 5

Bring what's needed from test_call_command.py to test_sagittal_brain.py so that when calling this script the following happens:

  1. a good input 20x20 array is created (input);
  2. an expected array with 20 elements is created (expected);
  3. the input array is saved as a csv file (brain_sample.csv);
  4. Charlene's code is executed from within this script (using subprocess);
  5. the output produced by Charlene's code (brain_average.csv) is read into output; and
  6. test that output and expected are equal.

run that script from the bash terminal.

React to this issue (#31) with a 🎉 when your team has completed this task.