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

Cleanup cython #3496

Merged
merged 13 commits into from
Feb 17, 2020
Merged

Cleanup cython #3496

merged 13 commits into from
Feb 17, 2020

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Feb 17, 2020

Description of changes:

The Cython bug was resolved in v0.26, which we now require.
The runtime error interface is also defined in espressomd.utils,
which is already imported by integrate.pyx.
Only import what is used. Make a consistent use of `cimport` for
functions/classes declared in .pxd files (even if the body is
defined in the .pyx file) and `import` for functions/classes
declared in .pyx files. `cimport` statements in .pxd files must
also appear in the corresponding .pyx file.
These imports were unnecessary, one had a circular dependency.
Replace wildcard imports by explicit imports. Remove unused imports.
Use relative imports.
Remove non-existent global variables. Remove global variables from
globals.pxd if they have already been declared in other .pxd files.
@jngrad
Copy link
Member Author

jngrad commented Feb 17, 2020

Don't merge yet, there is a failure in CI.

@codecov
Copy link

codecov bot commented Feb 17, 2020

Codecov Report

Merging #3496 into python will decrease coverage by <1%.
The diff coverage is 33%.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3496   +/-   ##
======================================
- Coverage      87%     87%   -1%     
======================================
  Files         536     536           
  Lines       24402   24404    +2     
======================================
- Hits        21256   21252    -4     
- Misses       3146    3152    +6
Impacted Files Coverage Δ
src/core/particle_data.cpp 96% <33%> (-1%) ⬇️
src/core/global.cpp 83% <0%> (ø) ⬆️
...rc/core/electrostatics_magnetostatics/scafacos.cpp 70% <0%> (ø) ⬆️
src/core/polymer.cpp 93% <0%> (-6%) ⬇️
src/core/electrostatics_magnetostatics/dipole.cpp 63% <0%> (ø) ⬆️
...re/bonded_interactions/bonded_interaction_data.cpp 91% <0%> (ø) ⬆️
src/core/object-in-fluid/oif_global_forces.cpp 81% <0%> (ø) ⬆️
src/core/grid_based_algorithms/lb.cpp 96% <0%> (ø) ⬆️
...rc/utils/include/utils/math/triangle_functions.hpp 91% <0%> (ø) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9ae0e8...12e34ba. Read the comment docs.

@jngrad jngrad added the automerge Merge with kodiak label Feb 17, 2020
@kodiakhq kodiakhq bot merged commit fedd3f0 into espressomd:python Feb 17, 2020
@jngrad jngrad mentioned this pull request Feb 19, 2020
kodiakhq bot added a commit that referenced this pull request Feb 19, 2020
Follow-up to #3496

Reflect in the Python interface all dependency inversions that recently took place in the core.
@jngrad jngrad deleted the cleanup-cython branch January 18, 2022 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught exception in System.number_of_particles() RDF analysis function silently broke in 4.1.2
2 participants