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

Fix a bug where a new server is run on object creation #1592

Merged
merged 3 commits into from
May 28, 2024

Conversation

PProfizi
Copy link
Contributor

Creating a Python DPF object based on another Python DPF object triggered a new server instead of using the server of the object given as input.

PProfizi added 3 commits May 28, 2024 10:44
Signed-off-by: paul.profizi <[email protected]>
Signed-off-by: paul.profizi <[email protected]>
Signed-off-by: paul.profizi <[email protected]>
@PProfizi PProfizi added the bug Something isn't working label May 28, 2024
@PProfizi PProfizi added this to the v0.12.2 milestone May 28, 2024
@PProfizi PProfizi requested a review from cbellot000 May 28, 2024 13:38
@PProfizi PProfizi self-assigned this May 28, 2024
Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.02%. Comparing base (a6943c2) to head (eaabbe8).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1592      +/-   ##
==========================================
+ Coverage   80.12%   87.02%   +6.90%     
==========================================
  Files          82       82              
  Lines        9671     9683      +12     
==========================================
+ Hits         7749     8427     +678     
+ Misses       1922     1256     -666     

@@ -299,3 +299,17 @@ def test_mutable_ids_data(server_clayer):
data = None
changed_data = scop.ids
assert np.allclose(changed_data[0], data_copy[0] + 2)


def test_scoping_dont_start_server(server_type):
Copy link
Contributor

Choose a reason for hiding this comment

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

could we maybe loop over supported types you updated ?

@PProfizi
Copy link
Contributor Author

PProfizi commented May 28, 2024

@cbellot000 FYI could not replicate with a forward, which I think is due to the fact that the forward operator is creating the output on its own server, so we do not get in the buggy behavior seen in the issue.

@PProfizi PProfizi merged commit 0816c90 into master May 28, 2024
43 checks passed
@PProfizi PProfizi deleted the fix/new_server_on_object branch May 28, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants