Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

48 increased regression test code coverage #62

Merged
merged 29 commits into from
Aug 12, 2022

Conversation

jonbarker68
Copy link
Contributor

Merging the regression test branch back into main.

jonbarker68 and others added 28 commits July 23, 2022 19:37
Increases coverage from 25% to 44%.

Currently using CEC2 mixing code. Needs replacing with CEC1 mixing.
Now used CEC1 scene rendering code.

Coverage increased from 44% to 47%.
Coverage increased from 47% to 53%
Note, this require torch, torchaudio and pystoi added
as dependencies.

The CEC1 and CEC2 pipeline regresion tests are now failing,
i.e. producing significantly different haspi and mbstoi values!
Need to investige why - rather odd as there has been no refactoring
on this branch. Perhaps to with random number seeding?
Code using pytorch was using multiple threads which was
causing problems for pytest. Adding torch.set_num_threads(1)
to the test code appears to have fixed the problem.

Coverage now at 58%.
- test_engine_losses - reduced precision of output so gives same
result on all versions of python
- test_CEC2_scene_builder - json output formatted on multiple
lines so that diffs can be seen easily
- test_full_CEC1_pipeline - fixed issue that tmp/ directory was
not being created
- Using tempfile to tests sharing a tmp dir
- Fixed full_CEC1_pipeline so produces a valid MBSTOI score
Coverage is currently 67%

Test torch_stoi (extended version included) using randomly generated x and torch_msbg processed x; test for torchloudnorm (might not be used anywhere, but just in case)
…test-code-coverage-clarity/predictor

Added regression test for clarity/predictor
coverage is currently 70%

Warnings from HOA tools tests that use numba @njit decorator run via py_func calls due to deprecated handling of reflected lists.
Outputs are different in different machines, probably due to cuda issue, therefore round up to 5 digits
…test-code-coverage-clarity/predictor

Change 0.8f to 0.5f in tests/regression/test_predictors
Merging main into 48-increased-regression-test-branch
…test-code-coverage

48 increased regression test code coverage
…test-code-coverage-clarity/enhancer

48 increased regression test code coverage clarity/enhancer
@jonbarker68 jonbarker68 linked an issue Aug 10, 2022 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2022

Codecov Report

Merging #62 (55b3a03) into main (4c96e39) will increase coverage by 57.33%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main      #62       +/-   ##
===========================================
+ Coverage   25.54%   82.88%   +57.33%     
===========================================
  Files          29       30        +1     
  Lines        3265     3353       +88     
===========================================
+ Hits          834     2779     +1945     
+ Misses       2431      574     -1857     
Impacted Files Coverage Δ
clarity/data/scene_builder_cec2.py 76.44% <ø> (+76.44%) ⬆️
clarity/dataset/cec1_dataset.py 55.68% <0.00%> (ø)
clarity/data/utils.py 92.59% <0.00%> (+14.81%) ⬆️
clarity/data/HOA_tools_cec2.py 96.81% <0.00%> (+39.49%) ⬆️
clarity/evaluator/msbg/audiogram.py 60.00% <0.00%> (+60.00%) ⬆️
clarity/evaluator/msbg/msbg_utils.py 60.10% <0.00%> (+60.10%) ⬆️
clarity/enhancer/gha/gha_interface.py 62.00% <0.00%> (+62.00%) ⬆️
clarity/data/scene_renderer_cec1.py 75.00% <0.00%> (+75.00%) ⬆️
clarity/predictor/torch_msbg.py 80.27% <0.00%> (+80.27%) ⬆️
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jonbarker68 jonbarker68 force-pushed the 48-increased-regression-test-code-coverage branch from 55b3a03 to 7d78bed Compare August 12, 2022 15:09
@jonbarker68 jonbarker68 merged commit ac6d774 into main Aug 12, 2022
@jonbarker68 jonbarker68 deleted the 48-increased-regression-test-code-coverage branch August 12, 2022 15:45
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.

Increased regression test code coverage
6 participants