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
meshing creates an instance of the class Meshing. We need to dynamically update the doc to update the help. In my understanding the doc can be modified but it does not affect the help. Need a proper mechanism to address this.
The things tried till now:
just updating the doc based on condition. -> Meshing.doc updates but not it's instance.
Meta-class approach:
class DynamicDocMeta(type):
def getattribute(cls, name):
if name == 'doc':
return cls._generate_dynamic_doc()
return super().getattribute(name)
class Meshing(PureMeshing, metaclass=DynamicDocMeta):
............. @classmethod
def _generate_dynamic_doc(self):
if self._fluent_connection == None:
return "Help: Condition........"
else:
return super(Meshing, self).doc
Useful links and references
No response
The text was updated successfully, but these errors were encountered:
Description of the modifications
meshing creates an instance of the class Meshing. We need to dynamically update the doc to update the help. In my understanding the doc can be modified but it does not affect the help. Need a proper mechanism to address this.
The things tried till now:
Useful links and references
No response
The text was updated successfully, but these errors were encountered: