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

Treeutil cleanup #1719

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Dec 21, 2023

Description

Based off changes in: #1716

Requires: spacetelescope/stdatamodels#244 Merged

This PR is work towards cleaning up asdf.treeutil. By:

  • deprecating get_children and is_container
  • deprecate the json_id argument for callbacks provided to walk_and_modify (more on this below)

The tracking needed for and the use of json_id opens up the possibilities for bugs when not parsing schemas (see #1715 and spacetelescope/stdatamodels#244). Removing this feature would make further improvements to treeutil easier (like those that might be required for superdictionaries).

A separate PR will attempt to deprecate ignore_implicit_conversion which might include deprecating the AsdfFile argument ignore_implicit_conversion. This will require further investigation and more extensive changes.

Checklist:

  • pre-commit checks ran successfully
  • tests ran successfully
  • for a public change, a changelog entry was added
  • for a public change, documentation was updated
  • for any new features, unit tests were added

@braingram braingram mentioned this pull request Jan 2, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant