-
Notifications
You must be signed in to change notification settings - Fork 13
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
PP bug fix and crash log #154
Conversation
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.
Looks pretty good. One comment about testing below. Hopefully this extra logging stuff helps in debugging in the future.
@@ -326,6 +326,7 @@ def combine_results(fs, results_dir, cfg, do_timeseries=True): | |||
|
|||
# Determine how many files should be in each partition and group the files | |||
npartitions = math.ceil(total_mem / 1e9) # 1 GB per partition | |||
npartitions = min(len(ts_filenames), npartitions) # cannot have less than one file per partition |
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.
Do you have a test for this? To avoid having to make files that are actually big enough to hit this issue, you could mock some function in the line of calculation for total_mem
.
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.
I have added the test.
The postrprocessing would crash if the number of partitions ended up being larger than number of files.
Pull Request Description
The pull request as two part.
Checklist
Not all may apply