-
Notifications
You must be signed in to change notification settings - Fork 63
asdf info block display
#2014
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
Merged
sydduckworth
merged 17 commits into
asdf-format:main
from
sydduckworth:asdf_info_block_display
Apr 20, 2026
Merged
asdf info block display
#2014
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d02fc79
Added block information to `AsdfFile.info` method.
sydduckworth 7d0e201
Merge branch 'main' into asdf_info_block_display
sydduckworth 8655a4a
Added `--show-blocks` flag to `info` CLI command
sydduckworth 1249b1f
Added unit tests for block display
sydduckworth b665048
Added changelog entry
sydduckworth 92c1d9a
Improved formatting of compression string in block info display.
sydduckworth 6616832
Updated `asdf.info` to support `show_blocks` flag.
sydduckworth 131154b
Added syrupy as a test dependency
sydduckworth 6f4c5a2
Updated block display tests.
sydduckworth c805ab3
Removed type hints
sydduckworth 84960ad
Updated block display tests to hide tree so that changes in the tree
sydduckworth 1b04bfa
Updated ndarray2.asdf to remove manifest
sydduckworth e4dca18
added global exclude to precommit for ambr snapshot files
sydduckworth ea46a54
Updated formatting of compression in block display to match set_array…
sydduckworth 8de932e
reverted pyproject.toml formatting
sydduckworth e99d647
Merge branch 'main' into asdf_info_block_display
sydduckworth 653b16f
Updated test file to include block padding
sydduckworth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # serializer version: 1 | ||
| # name: test_info_blocks_hide | ||
| ''' | ||
| Some nodes not shown. | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_blocks_show[ndarray0.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #0 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ None ┃ | ||
| ┃ allocated_size │ 16 ┃ | ||
| ┃ used_size │ 16 ┃ | ||
| ┃ data_size │ 16 ┃ | ||
| ┃ checksum │ 6e5a5ddda2f6c38efe929c54a1ab80bd ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_blocks_show[ndarray2.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #0 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ "lz4" ┃ | ||
| ┃ allocated_size │ 8192 ┃ | ||
| ┃ used_size │ 22 ┃ | ||
| ┃ data_size │ 16 ┃ | ||
| ┃ checksum │ 6e5a5ddda2f6c38efe929c54a1ab80bd ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #1 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ "bzp2" ┃ | ||
| ┃ allocated_size │ 8192 ┃ | ||
| ┃ used_size │ 42 ┃ | ||
| ┃ data_size │ 24 ┃ | ||
| ┃ checksum │ aa341a15f5ade44faafbe190f98c2587 ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_blocks_show[simple_inline_array0.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
|
|
||
| ''' | ||
| # --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # serializer version: 1 | ||
| # name: test_info_command_blocks_hide | ||
| ''' | ||
| Some nodes not shown. | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_command_blocks_show[ndarray0.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #0 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ None ┃ | ||
| ┃ allocated_size │ 16 ┃ | ||
| ┃ used_size │ 16 ┃ | ||
| ┃ data_size │ 16 ┃ | ||
| ┃ checksum │ 6e5a5ddda2f6c38efe929c54a1ab80bd ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_command_blocks_show[ndarray2.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #0 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ "lz4" ┃ | ||
| ┃ allocated_size │ 8192 ┃ | ||
| ┃ used_size │ 22 ┃ | ||
| ┃ data_size │ 16 ┃ | ||
| ┃ checksum │ 6e5a5ddda2f6c38efe929c54a1ab80bd ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
| ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ | ||
| ┃ Block #1 ┃ | ||
| ┣━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ | ||
| ┃ flags │ 0x00000000 ┃ | ||
| ┃ compression │ "bzp2" ┃ | ||
| ┃ allocated_size │ 8192 ┃ | ||
| ┃ used_size │ 42 ┃ | ||
| ┃ data_size │ 24 ┃ | ||
| ┃ checksum │ aa341a15f5ade44faafbe190f98c2587 ┃ | ||
| ┗━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ | ||
|
|
||
| ''' | ||
| # --- | ||
| # name: test_info_command_blocks_show[simple_inline_array0.asdf] | ||
| ''' | ||
| Some nodes not shown. | ||
|
|
||
| ''' | ||
| # --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
braingram marked this conversation as resolved.
|
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Added optional block info table to ``asdftool info`` and ``AsdfFile.info``. | ||
|
sydduckworth marked this conversation as resolved.
|
||
|
sydduckworth marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.