-
Notifications
You must be signed in to change notification settings - Fork 5
Add lazy io operations #40
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
base: main
Are you sure you want to change the base?
Conversation
bpalmeiro
left a comment
There was a problem hiding this 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
| 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()`. |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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
This PR is an offshoot of
include-WD1-processing, and provides the lazyreader()andwriter()functions for memory efficient manipulation of data.Lies on top of #39, so will need to be merged in that order.