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

Add __len__ method to mapdl.components #3661

Closed
germa89 opened this issue Jan 14, 2025 · 0 comments · Fixed by #3663
Closed

Add __len__ method to mapdl.components #3661

germa89 opened this issue Jan 14, 2025 · 0 comments · Fixed by #3663
Labels
enhancement Improve any current implemented feature

Comments

@germa89
Copy link
Collaborator

germa89 commented Jan 14, 2025

Description of the feature

Currently:

In [4]: len(mapdl.components)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 len(mapdl.components)

TypeError: object of type 'ComponentManager' has no len()

Steps for implementing the feature

it should just be something like:

def __len__(self):
    return self._comp.__len__()

Useful links and references

No response

@germa89 germa89 added the enhancement Improve any current implemented feature label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve any current implemented feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant