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

Cimport consistency #3978

Closed

Conversation

Hakarishirenai
Copy link
Contributor

Fixes #3908

Changes made in this Pull Request:

  • Have updated all cimport numpy from np to cnp

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@Hakarishirenai
Copy link
Contributor Author

@hmacdope can you give it a look ?

@hmacdope
Copy link
Member

Seem to be a large number of test failures @Hakarishirenai? You will have to go through and have a look at each one and fix it. Do you know how to run the tests locally? Have a look on the contributing page and tests guide for some tips if not.

@Hakarishirenai
Copy link
Contributor Author

Sure, will give it a look and try fixing them!

@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Base: 93.48% // Head: 93.52% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (a501dcf) compared to base (0c4f823).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3978      +/-   ##
===========================================
+ Coverage    93.48%   93.52%   +0.03%     
===========================================
  Files          190      190              
  Lines        24951    25028      +77     
  Branches      3527     3542      +15     
===========================================
+ Hits         23326    23407      +81     
+ Misses        1102     1100       -2     
+ Partials       523      521       -2     
Impacted Files Coverage Δ
package/MDAnalysis/lib/_augment.pyx 100.00% <100.00%> (ø)
package/MDAnalysis/lib/_cutil.pyx 100.00% <100.00%> (ø)
package/MDAnalysis/lib/formats/cython_util.pyx 100.00% <100.00%> (ø)
package/MDAnalysis/lib/formats/libdcd.pyx 91.11% <100.00%> (ø)
package/MDAnalysis/lib/formats/libmdaxdr.pyx 87.92% <100.00%> (ø)
package/MDAnalysis/lib/qcprot.pyx 100.00% <100.00%> (ø)
package/MDAnalysis/lib/mdamath.py 100.00% <0.00%> (ø)
package/MDAnalysis/lib/pkdtree.py 83.83% <0.00%> (ø)
package/MDAnalysis/lib/distances.py 97.62% <0.00%> (ø)
package/MDAnalysis/visualization/streamlines_3D.py 70.49% <0.00%> (ø)
... and 4 more

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Hakarishirenai
Copy link
Contributor Author

@hmacdope does this look good ?

@hmacdope
Copy link
Member

hmacdope commented Jan 2, 2023

Thanks for fixing the tests! Great job. Would you mind running the benchmarks to see if we have any regressions?

I only ask because it is possible to select different versions of a function or datatype silently when using import numpy as np AND cimport numpy as np, which is no longer the case with your changes.

The command you want is probably something like

asv continuous  [commit from develop] [commit from your branch]

The readme on running the benchmarks is at https://github.com/MDAnalysis/mdanalysis/tree/develop/benchmarks

Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark block

@Hakarishirenai
Copy link
Contributor Author

Sure, will give it a try

@orbeckst
Copy link
Member

@hmacdope you blocked the PR. Did anything change that would allow us to move forward? Or should we close the PR??

@hmacdope
Copy link
Member

@orbeckst Waiting for a benchmark run by @Hakarishirenai to certify no cython Numpy functions are being alaiesed back to Python level. I suppose I should probably just run them myself off this branch.

@hmacdope
Copy link
Member

@Hakarishirenai are you able to run the benchmarks? I havn't had a chance Otherwise I will mark this PR as stale in a few days.

@orbeckst orbeckst added the close? Evaluate if issue/PR is stale and can be closed. label Mar 23, 2023
@IAlibay
Copy link
Member

IAlibay commented Jun 25, 2023

I'm closing this PR as stale (due to lack of activity), please reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close? Evaluate if issue/PR is stale and can be closed. Component-Analysis Component-lib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change cimport numpy as np to cimport numpy as cnp for consistency
4 participants