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

PyPIM integration #237

Merged
merged 7 commits into from
May 19, 2022
Merged

PyPIM integration #237

merged 7 commits into from
May 19, 2022

Conversation

plule-ansys
Copy link
Contributor

This PR integrates PyPIM. In an environment configured for PIM, DpfServer is now able to start a remote instance of DPF and connect to it.

The integration approach is intended to follow the current pydpf direction and does not add any gRPC specific dependency. PyPIM itself being based on gRPC, it is lazy loaded under the condition that the user is starting dpf in a pypim environment. It however changes the construction of the channel from "ip/port" to any address as supported by gRPC: https://grpc.github.io/grpc/core/md_doc_naming.html

It currently comes with a limitation that the headers are not transmitted to the instances. It means that this implementation will not work if the DPF instance is behind a gateway, or in an authenticated environment.

ansys/dpf/core/server.py Outdated Show resolved Hide resolved
ansys/dpf/core/server.py Show resolved Hide resolved
ansys/dpf/core/server.py Show resolved Hide resolved
@cbellot000 cbellot000 requested a review from PProfizi May 16, 2022 06:53
@codecov
Copy link

codecov bot commented May 18, 2022

Codecov Report

Merging #237 (6433bcf) into master (b9a6cf4) will increase coverage by 0.03%.
The diff coverage is 93.10%.

@@            Coverage Diff             @@
##           master     #237      +/-   ##
==========================================
+ Coverage   85.41%   85.45%   +0.03%     
==========================================
  Files          52       52              
  Lines        5624     5650      +26     
==========================================
+ Hits         4804     4828      +24     
- Misses        820      822       +2     

@PProfizi
Copy link
Contributor

@plule-ansys Maybe a small test to pass the brand new codecov criteria?

@PProfizi PProfizi merged commit abea8fb into master May 19, 2022
@PProfizi PProfizi deleted the feat/pim branch May 19, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants