mdanalysis icon indicating copy to clipboard operation
mdanalysis copied to clipboard

Fix: Pca.py doctest error

Open HeetVekariya opened this issue 1 year ago • 6 comments
trafficstars

Partially address #3925

Changes made in this Pull Request:

  • Doctest for pca.py (package/MDAnalysis/analysis/pca.py) file contains two error (at two places: 1 and 2 ) due to wrong output in Expected:
    • 0.38147609331128324
    • 0.17478244043688052
  • Corrected expected output according to the generated output as below:
    • 0.3814760933112831
    • 0.17478244043688054

PR Checklist

  • [x] Tests?
  • [ ] Docs?
  • [ ] CHANGELOG updated?
  • [x] Issue raised/referenced?

Developers certificate of origin


📚 Documentation preview 📚: https://mdanalysis--4377.org.readthedocs.build/en/4377/

HeetVekariya avatar Dec 22 '23 13:12 HeetVekariya

I will update the change log when reviewed by maintainers.

HeetVekariya avatar Dec 22 '23 13:12 HeetVekariya

Linter Bot Results:

Hi @HeetVekariya! Thanks for making this PR. We linted your code and found the following:

There are currently no issues detected! 🎉

github-actions[bot] avatar Dec 22 '23 13:12 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.64%. Comparing base (93630da) to head (ea69941).

:exclamation: Current head ea69941 differs from pull request most recent head de83fd1. Consider uploading reports for the commit de83fd1 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4377      +/-   ##
===========================================
- Coverage    93.66%   93.64%   -0.03%     
===========================================
  Files          168      180      +12     
  Lines        21248    22327    +1079     
  Branches      3917     3917              
===========================================
+ Hits         19902    20908    +1006     
- Misses         888      961      +73     
  Partials       458      458              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 22 '23 14:12 codecov[bot]

@lilyminium could please handle this PR? I think rmsip was your code, wasn't it?

orbeckst avatar Feb 10 '24 00:02 orbeckst

@lilyminium

  • At the start i am thinking about the rounding, but thought that it is meant to have upto 17 decimals.
  • But if you allow i can do round off upto 6 decimals.

HeetVekariya avatar Feb 12 '24 14:02 HeetVekariya

Yes sure please do, rounding seems like the best solution here.

lilyminium avatar Feb 15 '24 01:02 lilyminium

/azp run

lilyminium avatar Mar 20 '24 23:03 lilyminium

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Mar 20 '24 23:03 azure-pipelines[bot]

Sorry for the delay -- thanks for fixing this @HeetVekariya! Could you please update the CHANGELOG?

lilyminium avatar Mar 21 '24 10:03 lilyminium

@lilyminium sorry for late response, I have updated the change log.

HeetVekariya avatar Mar 24 '24 16:03 HeetVekariya

@lilyminium could you please check in on this PR? You approved it a while back but it hasn't been merged. Thanks!

orbeckst avatar Mar 30 '24 16:03 orbeckst

Thanks @HeetVekariya -- merging now!

lilyminium avatar Apr 01 '24 03:04 lilyminium

Thank you for merging 🙏

HeetVekariya avatar Apr 01 '24 03:04 HeetVekariya