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

compiler: Fix pickling of aliasing SparseFunction #2148

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

FabioLuporini
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 17, 2023

Codecov Report

Merging #2148 (9fe2128) into master (4c54253) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2148   +/-   ##
=======================================
  Coverage   87.07%   87.08%           
=======================================
  Files         223      223           
  Lines       39832    39847   +15     
  Branches     5169     5169           
=======================================
+ Hits        34685    34702   +17     
+ Misses       4569     4568    -1     
+ Partials      578      577    -1     
Impacted Files Coverage Δ
devito/types/sparse.py 88.02% <100.00%> (+0.05%) ⬆️
tests/test_pickle.py 99.63% <100.00%> (+<0.01%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Contributor

@mloubout mloubout left a comment

Choose a reason for hiding this comment

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

._local already return a proper ndarray view

@@ -488,7 +488,10 @@ def coordinates(self):

@property
def coordinates_data(self):
return self.coordinates.data.view(np.ndarray)
try:
return self.coordinates.data.view(np.ndarray)
Copy link
Contributor

Choose a reason for hiding this comment

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

.data._local

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since it gets fixed in your PR, I'm merging

@FabioLuporini FabioLuporini merged commit f80847e into master Jun 17, 2023
@FabioLuporini FabioLuporini deleted the fix-pickle-alias-sf branch June 17, 2023 11:53
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.

3 participants