Skip to content

Conversation

@jwaiton
Copy link
Member

@jwaiton jwaiton commented Apr 22, 2025

This PR is an offshoot of include-WD1-processing, and provides the lazy reader() and writer() functions for memory efficient manipulation of data.

Lies on top of #39, so will need to be merged in that order.

This was referenced Apr 22, 2025
@jwaiton jwaiton mentioned this pull request Sep 23, 2025
@jwaiton jwaiton requested a review from bpalmeiro October 18, 2025 12:54
Copy link
Collaborator

@bpalmeiro bpalmeiro left a comment

Choose a reason for hiding this comment

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

Good in general, nice work. It's a bit lacking in the text suite. You have 5 condition cases (if I counted right), and none are tested. For the sake of the pressing time situation I could let that fly and come back later to pay all that technical debt

Comment on lines +164 to +169
fixed_size (Union[Bool, Tuple[Bool, int, int]])
: Method that's either enable or disabled.
False (disabled) -> Iteratively increases size of dataframe at runtime
True (enabled) -> Requires Tuple containing
(True, number of events, index to write to)
This method is best seen in action in `process_bin_WD1()`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why use it like that instead of having an explicit flag and an optional parameter?

chunks = True)
dset[0] = data
else:
index = fixed_size[2]
Copy link
Collaborator

Choose a reason for hiding this comment

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

going back to my previous comment, it would make this more obvious

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