Skip to content

Conversation

seanpearsonuk
Copy link
Collaborator

@seanpearsonuk seanpearsonuk commented Aug 16, 2022

  • update __dir__ in a few places because some elements are missing where they are attributes of other attributes. The original PR uses __getattr__ in those places which leaves things missing from dir() results.
  • remove some redundant code in meshing/workflow.py
    • add __call__ in MeshingWorkflow class


def __dir__(self):
return sorted(
set(list(self.__dict__.keys()) + dir(type(self)) + dir(self._task))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this object's attributes, the class attributes (which brings in methods), and attributes inherited from the task


def __dir__(self):
return sorted(
set(list(self.__dict__.keys()) + dir(type(self)) + dir(self._workflow))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar logic to the above

@seanpearsonuk seanpearsonuk merged commit 1115c08 into feat/mwf Aug 16, 2022
@seanpearsonuk seanpearsonuk deleted the feat/mwf_dir branch August 16, 2022 11:51
mkundu1 pushed a commit that referenced this pull request Aug 24, 2022
* got the command server -> client

* still got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* safely delete cmd args

* add MeshingWorkflow class

* got the command server -> client

* still got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* safely delete cmd args

* update meshing workflow class

* workflow class is working

* got the command server -> client

* still got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* got the command server -> client

* safely delete cmd args

* update meshing workflow class

* workflow class is working

* got the command server -> client

* still got the command server -> client

workflow

* got the command server -> client

* workflow

* got the command server -> client

* workflow

* workflow

* workflow

* workflow

* workflow

* workflow

* task attribute support

* reversion

* reversion

* reversion

* workflow

* workflow

* fix name

* log

* Update test_pure_mesh_vs_mesh_workflow.py

revert

* Update workflow.py

* minor style update

* update dir, remove some redundant code (#725)

* update dir, remove some redundant code

* extend testing

* Update test_session.py

* add call op in wf class

Co-authored-by: Prithwish Mukherjee <prithwish.mukherjee@ansys.com>
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.

1 participant