You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see everywhere this object components = {'x': x, 'y': y, 'z': z, 'xx': xx, 'yy': yy, 'zz': zz}
I would rather create a component like this:
class Components:
def __init__(x=0. y=0, z=0, xx=0, yy=0, zz=0):
self.x = x
self.y = y
etc...
after it's much easier to access the individual components self.components.x is much lighter than self.components['x'] also we can add plenty of helpers inside the components class
The text was updated successfully, but these errors were encountered:
indeed, in the case of compas_fea the bottleneck will always be the actual analysis, so we should design the entire infrastructure for convenience and not performance...
I can see everywhere this object
components = {'x': x, 'y': y, 'z': z, 'xx': xx, 'yy': yy, 'zz': zz}
I would rather create a component like this:
after it's much easier to access the individual components
self.components.x
is much lighter thanself.components['x']
also we can add plenty of helpers inside the components classThe text was updated successfully, but these errors were encountered: