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

feat: have unknown type become float64 when in array context #870

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

ioanaif
Copy link
Collaborator

@ioanaif ioanaif commented Apr 5, 2023

No description provided.

@ioanaif ioanaif linked an issue Apr 5, 2023 that may be closed by this pull request
@ioanaif ioanaif requested a review from jpivarski April 5, 2023 16:29
Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

Looks good! I'd just like you to apply the one suggestion below (ifelif), and I'll let you merge it when you think it's ready.

Comment on lines -721 to +723
content = content.to_NumpyArray()
content = content.to_NumpyArray(dtype=numpy.float64)
Copy link
Member

Choose a reason for hiding this comment

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

Since this line was already here (with a bug; dtype is required), it looks like my original intention was for EmptyArrays to be converted into NumpyArrays; they were just prevented from doing so because of the earlier check.

src/uproot/writing/_cascadetree.py Outdated Show resolved Hide resolved
Co-authored-by: Jim Pivarski <jpivarski@users.noreply.github.com>
@jpivarski
Copy link
Member

You have my approval here; this only needs the update from #871 to get merged in so that the test passes.

@ioanaif ioanaif merged commit 9e3c548 into main Apr 6, 2023
@ioanaif ioanaif deleted the ioanaif/feat-writing-ak-array-type-unknown branch April 6, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Writing Awkward Arrays of type unknown
2 participants