Skip to content

jvidalor/locations in property field #2322

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jvidalor
Copy link

@jvidalor jvidalor commented Jun 2, 2025

No description provided.

@jvidalor jvidalor requested a review from a team as a code owner June 2, 2025 08:58
Copy link

codecov bot commented Jun 2, 2025

❌ 852 Tests Failed:

Tests completed Failed Passed Skipped
21559 852 20707 3064
View the top 3 failed test(s) by shortest run time
src.ansys.dpf.core.property_field::core.property_field.PropertyField
Stack Traces | 0.001s run time
061         server.
062 
063     Returns
064     -------
065     property_field: PropertyField
066 
067     Examples
068     --------
069     >>> from ansys.dpf import core as dpf
070     >>> pfield = dpf.PropertyField()
UNEXPECTED EXCEPTION: DPFServerException('Invalid API pointer when calling function CSPropertyField_new_location')
Traceback (most recent call last):
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10/doctest.py", line 1350, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest core.property_field.PropertyField[1]>", line 1, in <module>
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 87, in __init__
    super().__init__(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/field_base.py", line 78, in __init__
    self._internal_obj = self.__class__._field_create_internal_obj(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 133, in _field_create_internal_obj
    return api.csproperty_field_new_location(nentities, nentities * dim.component_count, location)
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../gate/generated/property_field_capi.py", line 100, in csproperty_field_new_location
    raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: Invalid API pointer when calling function CSPropertyField_new_location
.../dpf/core/property_field.py:70: UnexpectedException
src.ansys.dpf.core.property_field::core.property_field.PropertyField.as_local_field
Stack Traces | 0.001s run time
336 
337         Returns
338         -------
339         local_field : PropertyField
340 
341         Examples
342         --------
343         >>> from ansys.dpf import core as dpf
344         >>> num_entities = 5
345         >>> field_to_local = dpf.PropertyField(num_entities, dpf.natures.scalar)
UNEXPECTED EXCEPTION: DPFServerException('Invalid API pointer when calling function CSPropertyField_new_location')
Traceback (most recent call last):
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10/doctest.py", line 1350, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest core.property_field.PropertyField.as_local_field[2]>", line 1, in <module>
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 87, in __init__
    super().__init__(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/field_base.py", line 78, in __init__
    self._internal_obj = self.__class__._field_create_internal_obj(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 133, in _field_create_internal_obj
    return api.csproperty_field_new_location(nentities, nentities * dim.component_count, location)
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../gate/generated/property_field_capi.py", line 100, in csproperty_field_new_location
    raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: Invalid API pointer when calling function CSPropertyField_new_location
.../dpf/core/property_field.py:345: UnexpectedException
src.ansys.dpf.core.property_field::core.property_field.PropertyField.location
Stack Traces | 0.001s run time
158         location : str
159             Location string, can be found in :class:`ansys.dpf.core.locations`: ie.
160             ``dpf.locations.nodal`` or ``dpf.locations.elemental``.
161 
162         Examples
163         --------
164         Create a property field and request the location. ##TODO Important, modify this example! as well as the description
165 
166         >>> from ansys.dpf import core as dpf
167         >>> pfield = dpf.PropertyField()
UNEXPECTED EXCEPTION: DPFServerException('Invalid API pointer when calling function CSPropertyField_new_location')
Traceback (most recent call last):
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10/doctest.py", line 1350, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest core.property_field.PropertyField.location[1]>", line 1, in <module>
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 87, in __init__
    super().__init__(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/field_base.py", line 78, in __init__
    self._internal_obj = self.__class__._field_create_internal_obj(
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../dpf/core/property_field.py", line 133, in _field_create_internal_obj
    return api.csproperty_field_new_location(nentities, nentities * dim.component_count, location)
  File ".../hostedtoolcache/Python/3.10.17.............../x64/lib/python3.10.../gate/generated/property_field_capi.py", line 100, in csproperty_field_new_location
    raise errors.DPFServerException(sError.value)
ansys.dpf.gate.errors.DPFServerException: Invalid API pointer when calling function CSPropertyField_new_location
.../dpf/core/property_field.py:167: UnexpectedException

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link
Contributor

github-actions bot commented Jun 2, 2025

Some tests with 'continue-on-error: true' have failed:

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.

2 participants