Skip to content

Remove inheritance of InputFile on Mesh #321

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidrudlstorfer
Copy link
Collaborator

I decided to add one additional step before moving the input file to fourcipp - namely the removal of the inheritance of the InputFile on Mesh

The overall code changes are pretty minimal - but major changes must occur to the testing framework.

Following this PR - the change to fourcipp should be really straight forward

@davidrudlstorfer davidrudlstorfer self-assigned this Apr 11, 2025
Comment on lines -115 to 119
mesh_1 = InputFile()
mesh_1 = Mesh()
create_test_mesh(mesh_1)

mesh_2 = InputFile()
mesh_2 = Mesh()
create_test_mesh(mesh_2)
Copy link
Collaborator Author

@davidrudlstorfer davidrudlstorfer Apr 11, 2025

Choose a reason for hiding this comment

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

@isteinbrecher one general question I wanted to discuss before proceeding to adjust the tests

In my opinion, in the future MeshPy should work without fourcipp, i.e., a 4C input file. For that it would be ideal if we could run tests on Meshes.

Currently we are not able to compare meshes within the testing framework. Do you share this opinion that we should test it without any overhead?

Maybe you have additional ideas, etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we share this opinion I would add an option that we can compare individual Meshes in our testing suite.

This somehow contradicts our discussion we had yesterday - we said we mainly wanted to focus on tests with reference files.

But in my opinion it's not that nice that we will always depend on fourcipp.

Maybe create a really generic input file which just dumps the raw data to yaml/json files and compare these?

@@ -102,7 +102,7 @@ def _get_yaml_geometry_sets(
return geometry_sets_in_this_section


class InputFile(_Mesh):
class InputFile:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And as a final note: I tested the overall working with my minimal example from #318 and everything worked out of the box as we discussed it.

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