Skip to content

Conversation

@jpivarski
Copy link
Member

No description provided.

Comment on lines -208 to +212
if all(uproot._util.from_module(x, "awkward") for x in basket_arrays.values()):
if len(basket_arrays) == 0:
output = numpy.array([], dtype=self.numpy_dtype)
elif all(
uproot._util.from_module(x, "awkward") for x in basket_arrays.values()
):
Copy link
Member Author

Choose a reason for hiding this comment

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

This was an actual bug-fix, discovered while arranging these tests but otherwise unrelated to them.

@jpivarski jpivarski marked this pull request as ready for review July 1, 2022 02:21
@jpivarski
Copy link
Member Author

@aryan26roy, this is a suite of test-stubs that you can use to set up test-driven development for adding Forth code. Only that which is tested by these tests needs to be developed as part of your project. The comments in the code with your name are cross-listed with the test numbers, so that you can plan which ones to solve when. By the end of your project, those comment lines should be removed (even the ones you can't do anything with, the "untested" ones).

Let me know if it would be easier for you to merge your branch first or for me to merge this one first. The target is main, not main-v4.

Comment on lines +17 to +20
@pytest.mark.skip(
reason="Implement non-memberwise std::map; we have a sample (map<string,double>)"
)
def test_nonmemberwise_asmap():
Copy link
Member Author

Choose a reason for hiding this comment

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

This is for me to implement non-memberwise std::map in Python, so that you can develop Forth code for both the memberwise and non-memberwise cases. (Just for std::map.) These four tests will be added to test_0637.

@jpivarski jpivarski enabled auto-merge (squash) July 1, 2022 16:51
@jpivarski jpivarski merged commit 75ee188 into main Jul 1, 2022
@jpivarski jpivarski deleted the jpivarski/small-fixes-1 branch July 1, 2022 17:00
Moelf pushed a commit to Moelf/uproot5 that referenced this pull request Aug 1, 2022
* 'all' can be satisfied by the empty set.

* Concatenating an empty set of arrays is also bad.

* Identified a sample of non-memberwise std::map; need to implement it.

* And a few more, for better debugging.

* Added the suite of tests.

* Added comment-markers to indicate which tests address which lines of code.
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.

2 participants