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

--Expose Attributes save functionality to python; cleanup/improve attribute registration. #2345

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

jturner65
Copy link
Contributor

@jturner65 jturner65 commented Mar 23, 2024

Motivation and Context

This PR exposes the attributes save-to-disk functionality via python;
It expands the possible saving capabilities so that both directories and filenames can be independently specified.
It also addresses some longstanding inefficiencies and potential issues with attribute registration

How Has This Been Tested

All C++ and python tests pass locally

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have completed my CLA (see CONTRIBUTING)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@jturner65 jturner65 requested a review from aclegg3 March 23, 2024 19:46
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 23, 2024
@jturner65 jturner65 force-pushed the Attr_PythonSaveConfigs branch 2 times, most recently from b3a199f to ab12077 Compare April 8, 2024 14:05
@jturner65 jturner65 marked this pull request as ready for review April 9, 2024 14:36
@jturner65 jturner65 changed the title --[WIP]Expose Attributes save functionality to python; cleanup/improve attribute registration. --Expose Attributes save functionality to python; cleanup/improve attribute registration. Apr 9, 2024
@facebookresearch facebookresearch deleted a comment Apr 10, 2024
@facebookresearch facebookresearch deleted a comment Apr 10, 2024
@jturner65 jturner65 force-pushed the Attr_PythonSaveConfigs branch 2 times, most recently from 51b951c to a31b0b8 Compare April 22, 2024 13:32
@jturner65 jturner65 force-pushed the Attr_PythonSaveConfigs branch 2 times, most recently from f807ac8 to 845c415 Compare April 23, 2024 14:04
Before, required functionality was expected to be implemented in manager specializations; now this functionality is handled internally so any future specializations
Also set actual filename for loaded managedFileBasedObjects.
Copy link
Contributor

@aclegg3 aclegg3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
TODO: add python unit tests for the new bindings in follow-up

@jturner65 jturner65 merged commit 07734a8 into main Apr 25, 2024
10 checks passed
@jturner65 jturner65 deleted the Attr_PythonSaveConfigs branch April 25, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants