Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automating git bisect - part I #34

Open
dpshelio opened this issue Nov 17, 2022 · 0 comments
Open

Automating git bisect - part I #34

dpshelio opened this issue Nov 17, 2022 · 0 comments
Labels
week06 Documenting projects and findging bugs

Comments

@dpshelio
Copy link
Contributor

dpshelio commented Nov 17, 2022

In your homework (#31), you've seen that even for just 24 commits (and there can be many more), you need to type quite a few, repetitive git bisect commands to find the commit you're looking for.
It's therefore something that is useful to automate. The Solving automatically section in the notes may be useful. Given the same situation as in this week's homework.

Let's go through some steps in the next issues:

Step 0

🤩 If you've attempted the homework, your repository may be in a bisecting state.

Therefore, run the following to keep everyone in the same point:

git bisect reset # to make sure you are not in a bisecting state
git switch main  # to go back to Charlene's original point
git reset --hard HEAD # to remove any modifications done to the tracked files

🙈 If you've not tried the homework yet, then clone Charlene's repository locally:

git clone [email protected]:UCL-COMP0233-22-23/sagittal_average.git

Step 1

In a new file (test_sagittal_brain.py) create an input and expected numpy arrays to test Charlene's code.

Take a look to the diagram on the previous issue (#31) to understand what Charlene is trying to do.

Think why the current input (brain_sample.csv) and output (brain_average.csv) files that Charlene's been using to test her code are not very useful, and create new ones that could highlight any common error in this type of data manipulation.

Hint

Which array can you create that will produce different average values for each different row?

React to this issue (#34) with a 👀 when your team has completed the task.

@dpshelio dpshelio added the week06 Documenting projects and findging bugs label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
week06 Documenting projects and findging bugs
Projects
None yet
Development

No branches or pull requests

1 participant