In this assignment we are adding documentation and error handeling
for the rms function
which we have implemented in Assignment 2.
- Create a new branch.
- In file
pyproject.toml, remove thedisableline in the[tool.pylint.main]section, around Line 60. - Create a pull request.
- Your build will fail because the
pylintnow complains that you do not have in-code documentation. - Now add necessary documentation so the build passes. Review, approve, and merge pull request.
We want to check the following conditions on the input_array. If a condition is not satisified, you should raise an error with a meaningful message.
input_arrayshould be an instance ofnp.ndarray.input_arrayshould be one-dimentional.input_arrayshould have thedtypeofnp.float64.- The size of
input_arrayshould be at least1. input_arrayshould not contain anyinf.input_arrayshould not contain anynan.
In the error conditions, you should test all individual errors by creating a faulty input and check if the correct error is raised with the correct error message.
We create one PR for each error condition, including error handeling code and test. The team leader and team member should work on different sub-tasks, create different PR's and review each other's PR's.