Skip to content

Assignment 2#2

Open
khirmas67 wants to merge 5 commits intomainfrom
assignment_2
Open

Assignment 2#2
khirmas67 wants to merge 5 commits intomainfrom
assignment_2

Conversation

@khirmas67
Copy link
Copy Markdown
Owner

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I am adding new code to calculate summary statistics (mean, max, min) of inflammation levels for one of 60 patients during 40 session. I will also write code to check for missing or incorrect data (e.g., negative values) and handle these appropriately.

What did you learn from the changes you have made?

I learned that using Numpy made the things easier in coding. Without Numpy, one needs to parse the data into a list, then iterate over each patient for the 40 sessions to float each value, then calculate the summary statistics... etc.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

How were these changes tested?

A reference to a related issue in your repository (if applicable)

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@pedram-aliniaye-asli pedram-aliniaye-asli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did a great job here!
Just a few quick notes:

  • In patient_summary function, you don't need to return the result in each if statement, you can just simply return the result once at the end.
  • In detect_problems function, there is no need to call the check_zeros(x) function once and then do it again to return the result. You can just call it once and return the result either directly or from a variable that has the result stored in it.
    Please go ahead and close this pull request now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants