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 as array.var().
-
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 in nada_numpy/funcs.py. You can refer to the existing functions in this file to see how they simply wrap around array.var() in this context.
-
Testing:
- The
tests/nada-tests folder contains the testing infrastructure for nada_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 variance and placing it in tests/nada-tests/tests/.
- Finally, add the script to the
TESTS array in tests/test_all.py to integrate it with the CI/CD pipeline.
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:
nada_numpy/array.py, integrate the variance class as a new member function. This will allow the variance to be called asarray.var().Add a Wrapper in
nada_numpy/funcs.py: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.Testing:
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:tests/nada-tests/nada-project.toml.tests/nada-tests/src/, where it will verify the expected behavior.nada generate-test --test-name variance varianceand placing it intests/nada-tests/tests/.TESTSarray intests/test_all.pyto integrate it with the CI/CD pipeline.