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

Refactor of Primitives Classes to Return Object3d objects #264

Merged
merged 60 commits into from
Jul 14, 2021

Conversation

voss70
Copy link
Contributor

@voss70 voss70 commented Jul 13, 2021

This is a major refactor of the way we manage geometric primitives in the modeler. All create_xxx functions of the Primitives modules return objects rather than ids. This may break some existing applications. All examples in our suite have been adjusted.

We also introduce unit-testing from IronPython using unittest. This is a preliminary implementation and will be extended in the near future.

vossleon and others added 30 commits July 6, 2021 15:54
General Refactoring of consequences and debugging
Added new object operations to Object3d.py
added solid_names, sheet_names and line_names, as well as liine_objects, sheet_objects and solid_object properties to Primitives
# Conflicts:
#	pyaedt/application/Analysis3D.py
#	pyaedt/modeler/Object3d.py
#	pyaedt/modeler/Primitives.py
Moved older AEDTLib examples into AEDTLib_archive
Updated unit test on Section in Object3d
…m/pyansys/PyAEDT into Create_Primitives_Returns_Objects

# Conflicts:
#	pyaedt/modeler/Object3d.py
…m/pyansys/PyAEDT into Create_Primitives_Returns_Objects

# Conflicts:
#	pyaedt/modeler/Object3d.py
@voss70
Copy link
Contributor Author

voss70 commented Jul 13, 2021

@maxcapodi78 I need your help regarding the 4 failing unit tests. Thx

@maxcapodi78
Copy link
Collaborator

@maxcapodi78 I need your help regarding the 4 failing unit tests. Thx

yes, we can work on that tomorrow

@maxcapodi78
Copy link
Collaborator

@akaszynski @maxcapodi78 is there any way to avoid the new test cases planned for our IronPython unit test (in _unittest_ironpython/ ) to be run in our pytest ? These are causing issues at the moment.

I think we need to slightly modify the pipeline to skip ironphyton folder

@voss70 voss70 marked this pull request as ready for review July 14, 2021 10:46
@maxcapodi78 maxcapodi78 merged commit ac0c212 into main Jul 14, 2021
@maxcapodi78 maxcapodi78 deleted the Create_Primitives_Returns_Objects branch July 14, 2021 14:04
@voss70
Copy link
Contributor Author

voss70 commented Jul 14, 2021

Great to get this one done !

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.

4 participants