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

Exception due to shared inline data #368

Closed
bobpepin opened this issue Oct 27, 2017 · 1 comment · Fixed by #370
Closed

Exception due to shared inline data #368

bobpepin opened this issue Oct 27, 2017 · 1 comment · Fixed by #370
Assignees
Labels
Milestone

Comments

@bobpepin
Copy link

Hi,
the attached code raises the following exception:

File "/opt/miniconda/lib/python3.6/site-packages/asdf-1.3.1.dev980-py3.6.egg/asdf/block.py", line 649, in get_block
    raise TypeError("Unknown source '{0}'".format(source))
TypeError: Unknown source '[-1.0, 1.0]'

This is presumably due to the _block attribute being set to None when the inline array is first encountered during writing.
inline_py.txt

@drdavella
Copy link
Contributor

@bobpepin thanks for the bug report. I was able to reproduce and will try to get a fix out shortly.

@drdavella drdavella added the bug label Oct 30, 2017
@drdavella drdavella added this to the 1.3.1 milestone Oct 30, 2017
@drdavella drdavella self-assigned this Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants