We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The docs mention the ability to "chain" searches: https://asdf.readthedocs.io/en/latest/asdf/features.html#chaining-searches The shown example works (if type_ is used instead of type) but other chains are not producing the expected result.
type_
type
>>> import asdf >>> af = asdf.AsdfFile({"a": 1, "b": {"c": [1, 2, 3]}}) >>> af.search("c") # expected root (AsdfObject) └─b (dict) └─c (list): [1, 2, 3] >>> af.search("b") # expected root (AsdfObject) └─b (dict): {'c': [1, 2, 3]} >>> af.search("b").search("c") # fails to find "c" No results found
asdf version: main python version: 3.10 operating system: mac osx
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description of the problem
The docs mention the ability to "chain" searches:
https://asdf.readthedocs.io/en/latest/asdf/features.html#chaining-searches
The shown example works (if
type_
is used instead oftype
) but other chains are not producing the expected result.Example of the problem
System information
asdf version: main
python version: 3.10
operating system: mac osx
The text was updated successfully, but these errors were encountered: