I downloaded Ansys Student and pydpf and tried to run an example.
This example, specifically: https://dpf.docs.pyansys.com/version/stable/examples/02-modal_analyses/01-plot_and_animate_modes.html#sphx-glr-examples-02-modal-analyses-01-plot-and-animate-modes-py
I have Ansys Student 24R1 and
ansys-dpf-composites==0.4.0
ansys-dpf-core==0.10.1
ansys-dpf-gate==0.4.1
ansys-dpf-gatebin==0.4.1
ansys-dpf-post==0.6.0
The error trace looks like this
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[3], line 9
6 unit = freq_support.time_frequencies.unit
8 # For each ID in the scoping
----> 9 for freq_set in freq_scoping:
10 # Get the associated frequency in the time_freq_support
11 freq = freq_support.get_frequency(cumulative_index=freq_set - 1)
12 # Get the associated mode shape as a displacement field
File ~\OneDrive - ANSYS, Inc\Documents\GitHub\PyConLabSetup\venv\Lib\site-packages\ansys\dpf\core\scoping.py:312, in Scoping.__iter__(self)
311 def __iter__(self):
--> 312 return self.ids.__iter__()
File ~\OneDrive - ANSYS, Inc\Documents\GitHub\PyConLabSetup\venv\Lib\site-packages\ansys\dpf\core\scoping.py:279, in Scoping.ids(self)
261 @property
262 def ids(self):
263 """Retrieve a list of IDs in the scoping.
264
265 Returns
(...)
277 Print a progress bar.
278 """
--> 279 return self._get_ids()
File ~\OneDrive - ANSYS, Inc\Documents\GitHub\PyConLabSetup\venv\Lib\site-packages\ansys\dpf\core\scoping.py:172, in Scoping._get_ids(self, np_array)
169 if np_array == None:
170 from ansys.dpf.core import settings
--> 172 np_array = settings.get_runtime_client_config(self._server).return_arrays
173 try:
174 vec = dpf_vector.DPFVectorInt(
175 client=self._server.client,
176 api=self._server.get_api_for_type(
(...)
179 ),
180 )
AttributeError: 'dict' object has no attribute 'return_arrays'
Have I found a bug or done something wrong?