-
Notifications
You must be signed in to change notification settings - Fork 4
♻️ Refactor: Standardize 'tree' to 'mesh' naming convention (#111) #191
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
base: main
Are you sure you want to change the base?
Conversation
* feat(src/plaid/containers/sample.py): * Renamed methods: show_tree -> show_mesh, init_tree -> init_mesh, add_tree -> add_mesh, del_tree -> del_mesh, link_tree -> link_mesh * Added @deprecated decorators to old methods for backward compatibility * Corrected _links and _paths initialization in add_mesh to fix KeyError * refactor(tests/containers/test_sample.py): * Updated method calls (ex: sample.add_tree -> sample.add_mesh) * Renamed fixtures (ex: sample_with_tree -> sample_with_mesh, tree -> mesh) * Updated fixture usage in test functions * refactor(tests/containers/test_dataset.py): * Updated fixture usage (dataset_with_samples_with_tree -> dataset_with_samples_with_mesh) * refactor(tests/pipelines/test_sklearn_block_wrappers.py): * Updated fixture usage (dataset_with_samples_with_tree_nodes_feat_ids -> dataset_with_samples_with_mesh_nodes_feat_ids) * refactor(tests/utils/test_cgns_helper.py): * Updated fixture usage (sample_with_tree -> sample_with_mesh, tree -> mesh) * refactor(tests/conftest.py): * Renamed fixtures (tree -> mesh, sample_with_tree -> sample_with_mesh, samples_with_tree -> samples_with_mesh, dataset_with_samples_with_tree -> dataset_with_samples_with_mesh) * Updated fixture usage (heterogeneous_dataset) * refactor(tests/utils/test_stats.py): * Updated method calls (s.init_tree -> s.init_mesh) * refactor(examples/): * Updated method calls (ex: sample.add_tree -> sample.add_mesh, sample.show_tree -> sample.show_mesh) * refactor(benchmarks/): * Updated method calls (ex: new_sample.add_tree -> new_sample.add_mesh, new_sample.link_tree -> new_sample.link_mesh) * refactor(docs/notebooks): * Updated notebook examples to use mesh instead of tree * docs(CHANGELOG.md): * Added entry for tree → mesh refactor (#111)
Found 4 changed notebooks. Review the changes at https://app.gitnotebooks.com/PLAID-lib/plaid/pull/191 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks !
…ods in benchmarks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work ! you should just check that notebooks run well in jupyter (saving them without outputs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Hello @AntitheticalElysium, sorry for this, but we merged a big PR which intrduced conficts in your own. We can discuss about it if you need help to correct them. |
@casenave No problem, I'll handle the merge |
Summary
This PR refactors
Sample
and related code to standardize thetree
→mesh
naming convention (issue #111):mesh
.Checklist