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

get_fields_info and get_scalar_fields_info call over the same rpc #3590

Open
mkundu1 opened this issue Dec 18, 2024 · 2 comments
Open

get_fields_info and get_scalar_fields_info call over the same rpc #3590

mkundu1 opened this issue Dec 18, 2024 · 2 comments
Assignees

Comments

@mkundu1
Copy link
Contributor

mkundu1 commented Dec 18, 2024

def get_fields_info(self, request):
    """GetFieldsInfo RPC of FieldData service."""
    return self._stub.GetFieldsInfo(request, metadata=self._metadata)

def get_scalar_fields_info(self, request):
    """GetFieldsInfo RPC of FieldData service."""
    return self._stub.GetFieldsInfo(request, metadata=self._metadata)

We should have a single method to get the field info.

@mkundu1
Copy link
Contributor Author

mkundu1 commented Dec 18, 2024

get_fields_info doesn't even work:

>>> field_info.get_fields_info()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\ANSYSDev\PyFluentDev\pyfluent\src\ansys\fluent\core\services\field_data.py", line 128, in get_fields_info
    request = FieldDataProtoModule.GetFieldsInfo()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'ansys.api.fluent.v0.field_data_pb2' has no attribute 'GetFieldsInfo'. Did you mean: 'FieldInfo'?

@mkundu1
Copy link
Contributor Author

mkundu1 commented Dec 18, 2024

The stable user guide and cheatsheet mentions get_fields_info which doesn't exist in the stable released version (0.27).

@mkundu1 mkundu1 assigned mkundu1 and hpohekar and unassigned mkundu1 Dec 18, 2024
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

No branches or pull requests

2 participants