Rewrite Metric_computation with parallel processing and improved pipeline #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Details
Parallel processing: add_bottom_mip_migration now processes movies in parallel via joblib.Parallel instead of sequential tqdm loop. Each movie is handled by _process_single_movie_area with up to 5 retries and exponential backoff (1s, 2s, 4s, 8s, 16s) for S3 network errors.
Bug fixes:
df_id.int_smooth.values[0] (first timepoint value) as the upper bound of the dynamic range, and converts to hours with *(30/60)
Pipeline improvements:
Test plan