Skip to content

deprecate uniform random winnowing - #19

Merged
burkh4rt merged 1 commit into
masterfrom
deprecate-urt
Jul 9, 2026
Merged

deprecate uniform random winnowing#19
burkh4rt merged 1 commit into
masterfrom
deprecate-urt

Conversation

@burkh4rt

@burkh4rt burkh4rt commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This pull request removes support for the uniform_random thresholding option throughout the codebase and documentation, and adds improved instructions for syncing data directories. The most important changes are summarized below.

Thresholding logic and configuration:

  • Removed the uniform_random thresholding option from both the YAML configuration (src/cocoa/config/winnowing.yaml) and the example in the documentation (README.md). [1] [2]
  • Deleted the implementation of uniform_random thresholding in the run_thresholding method in winnower.py, so this option is no longer available in code.
  • Updated documentation to clarify and clean up the description of available thresholding options.

Documentation and usability:

  • Added instructions for creating symlinks and using rsync to sync data directories between local and remote environments in the README.md.
  • Minor formatting improvements in the documentation for readability.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR deprecates and removes the uniform_random winnowing thresholding mode across the implementation, default configuration, and documentation, and adds/updates README guidance for syncing data directories between environments.

Changes:

  • Removed the uniform_random thresholding branch from run_thresholding.
  • Updated the shipped winnowing.yaml and README example to remove uniform_random and show duration_s.
  • Added additional README sync instructions (symlinks + rsync) for moving the repo and data-directory layout between systems.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/cocoa/winnower.py Removes uniform_random thresholding code path and leaves duration/first-occurrence options.
src/cocoa/config/winnowing.yaml Removes uniform_random from the default config and enables duration_s in the template.
README.md Removes uniform_random from docs/examples and adds additional environment sync instructions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cocoa/winnower.py
)
)
else:
raise NotImplementedError("Please check the thresholding configuration.")
Comment on lines 11 to 13
# choose one and only one of the following
# duration_s: !!int 86400 # 24h
duration_s: !!int 86400 # 24h
# first_occurrence: XFR-IN//icu
Comment thread README.md
Comment on lines 446 to 450
threshold:
# choose one and only one of the following
# duration_s: !!int 86400 # 24h
duration_s: !!int 86400 # 24h
# first_occurrence: XFR-IN//icu
uniform_random: !!bool True

Comment thread README.md
Comment on lines +627 to 647

Send to randi:
```
for d in data-raw processed; do
ln -s /gpfs/data/bbj-lab/users/burkh4rt/$d $d
done
```
```
rsync -avh \
--exclude "output" \
--exclude "processed" \
--exclude "data-raw" \
--exclude "logs" \
--exclude "wandb" \
--exclude ".venv/" \
--exclude ".idea/" \
~/Documents/chicago/cocoa \
randi:/gpfs/data/bbj-lab/users/burkh4rt
```

-->
@burkh4rt
burkh4rt merged commit 500c149 into master Jul 9, 2026
1 check passed
@burkh4rt
burkh4rt deleted the deprecate-urt branch July 9, 2026 19:24
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