-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
All the links in this issue point to the specific files that need to be modified to achieve this result
Thank you for taking the time to review the issues related to Nada Numpy. This particular issue involves integrating an existing implementation of variance functionality into Nada Numpy. The source code for the variance can be found here: Nada by Example link.
To complete this task, please follow these steps:
-
Integrate the Variance Function:
- In
nada_numpy/array.py, integrate the variance class as a new member function. This will allow the variance to be called asarray.var().
- In
-
Add a Wrapper in
nada_numpy/funcs.py:- In Nada Numpy, functions can also be called in the form
na.var(array). To support this, add a wrapper innada_numpy/funcs.py. You can refer to the existing functions in this file to see how they simply wrap aroundarray.var()in this context.
- In Nada Numpy, functions can also be called in the form
-
Testing:
- The
tests/nada-testsfolder contains the testing infrastructure fornada_numpy. You will need to create one or more scripts to test the variance functionality. Follow these steps for testing:- Add a script to
tests/nada-tests/nada-project.toml. - Place your test script in
tests/nada-tests/src/, where it will verify the expected behavior. - Generate the test file by running
nada generate-test --test-name variance varianceand placing it intests/nada-tests/tests/. - Finally, add the script to the
TESTSarray intests/test_all.pyto integrate it with the CI/CD pipeline.
- Add a script to
- The
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers