In class today, I set out to find the issue with the mean and median values. I created a tester file in which I performed np.mean and np.median on what should have been the temperatures in the test series. While at first I got drastically different values than what was included in the output file, I soon realized how I had been misinterpreting what my own program was doing. The test data was [80, 70, 70, 70, 70, 70, 70, 70, 5], the mean of which is somewhere in the lower 60s, but the output in the report was 42.5. However, my program filters for problematic rooms only, meaning that the series would have been whittled down to [80, 5] -- the mean of which is 42.5. I made this clearer by updating the columns to say "Mean Problematic Room" and "Median Problematic Room".
After this, I dealt with another Git adventure. For the past week or so, I have been making structural changes to the way the report is organized in order to improve readability and efficiency. Such that I would not ruin my working (albeit slightly inefficient) version, I created a new branch on which to make these changes. Now that the new version was finished, I merged the branches back together. Then, I realized that the old code was in the file called task_three, while the new one resided in task_three_cleanup. An attempt to refactor both of these (into task_three_old and task_three respectively) resulted in a lot of merging issues. Essentially, it seemed that the system had tried to merge the old file with the cleanup file and drop all that code haphazardly into the main file. After learning how to revert changes, I did so with the last few commits, but the code was still not the same! After thinking about possible solutions for a while, I realized that fortunately, I had not deleted the other branch. Recovering that branch, I changed it to the default and just deleted the master branch! After this, I began deploying to the server (with the old names!). There is now only one part left to set up -- I need to create an e-mail account for this purpose and make sure it's actually sending mail. Then, the report will finally be done! Comments are closed.
|
AuthorI'm a high school senior and programming enthusiast. Archives
March 2022
Categories |