Skip to content

Conversation

@aryan26roy
Copy link
Collaborator

No description provided.

Comment on lines +675 to +686
read_member_n.append(
"""
forth = False
forth_obj = None
fcode_pre = []
fcode_post = []
temp = None
if "forth" in context.keys():
forth = True
forth_obj = context["forth"]
key = forth_obj.get_key()\n"""
)
Copy link
Member

Choose a reason for hiding this comment

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

I think you don't want to put code into the read_member_n, which is for the memberwise format. (Unless a particular type has memberwise implemented in Python as well.)

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.

I'm in favor of merging this! I made a lot of comments above, but they can be dealt with in subsequent PRs.

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.

Approved! (In person.)

@jpivarski jpivarski merged commit ce40d00 into main Jul 1, 2022
@jpivarski jpivarski deleted the aryan-revised-forth-reader branch July 1, 2022 16:34
Moelf pushed a commit to Moelf/uproot5 that referenced this pull request Aug 1, 2022
* put in control flow

* revised version works

* fixed bug in control flow

* added test-file

* changes to be made in asArray and model.py

* WIP

* made changes to support multiple read operations on the same class

* array of TrefArrays works

* added test for array of trefarray

* removes stray import

* added some string generation for forth in streamers.py

* linting

* Added a new helper class and incorporated review suggestions
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.

3 participants