-
Notifications
You must be signed in to change notification settings - Fork 3
Add noise-aware stitching, min_rows, concat, and calcium imaging config #155
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
Merged
sneakers-the-rat
merged 22 commits into
miniscope:main
from
MarcelMB:feat/timestamp-stitch-and-min-rows
Apr 24, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b550c6f
Add min_rows to BlackAreaDetector and timestamp-based matching to stitch
MarcelMB 49a5d89
Add concat command to merge sequential recording segments
MarcelMB 5fbfea6
Use natural numeric sort for concat segment discovery
MarcelMB c8ccd63
Fix concat CSV discovery for mismatched AVI/CSV names
MarcelMB b181420
Fix denoise_calcium_imaging config: add required fields to frequency_…
MarcelMB 551cd62
Add noise-aware frame selection, vectorize BlackAreaDetector, add sti…
MarcelMB 305b14f
Merge branch 'main' into feat/timestamp-stitch-and-min-rows
sneakers-the-rat fc7d6c2
remove mean error noise detection method
sneakers-the-rat f22d517
add score_noise method
sneakers-the-rat d93565e
incorporate noise scoring in stitcher
sneakers-the-rat 5eea4e0
clean up concat
sneakers-the-rat 8341b8b
update concat tests
sneakers-the-rat e40e88c
actually commit the updated tests
sneakers-the-rat 24d09db
update tests
sneakers-the-rat f0fe82d
align by timestamp
sneakers-the-rat e35fb74
dont count contiguous frames as being blips lol
sneakers-the-rat 04a8aab
whoops removed the wrong test
sneakers-the-rat 1ae8a31
update changelog
sneakers-the-rat 24ce4ed
no json schema generation since we got pandas dataframes in models
sneakers-the-rat 489d091
use lockfile when testing docs
sneakers-the-rat 4d3221d
what is going on
sneakers-the-rat 3b13dc7
need to install docs specifically i guess
sneakers-the-rat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # dataset | ||
|
|
||
| ```{eval-rst} | ||
| .. automodule:: mio.models.dataset | ||
| :members: | ||
| :undoc-members: | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 36 additions & 45 deletions
81
...ig/process/denoise_example_mean_error.yml → ...onfig/process/denoise_calcium_imaging.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,36 @@ | ||
| id: denoise_example_mean_error | ||
| mio_model: mio.models.process.DenoiseConfig | ||
| mio_version: 0.6.1 | ||
| noise_patch: | ||
| enable: true | ||
| method: [mean_error] | ||
| mean_error_config: | ||
| threshold: 40 | ||
| device_config_id: wireless-200px | ||
| buffer_split: 8 | ||
| comparison_unit: 1000 | ||
| diff_multiply: 1 | ||
| gradient_config: | ||
| threshold: 20 | ||
| black_area_config: | ||
| consecutive_threshold: 5 | ||
| value_threshold: 16 | ||
| output_result: true | ||
| output_noise_patch: true | ||
| output_diff: true | ||
| output_noisy_frames: true | ||
| frequency_masking: | ||
| id: frequency_masking_example_mean_error | ||
| mio_model: mio.models.process.FrequencyMaskingConfig | ||
| mio_version: 0.6.1 | ||
| enable: true | ||
| spatial_LPF_cutoff_radius: 15 | ||
| vertical_BEF_cutoff: 2 | ||
| horizontal_BEF_cutoff: 0 | ||
| output_mask: true | ||
| output_result: true | ||
| output_freq_domain: true | ||
| minimum_projection: | ||
| enable: true | ||
| normalize: true | ||
| output_result: true | ||
| output_min_proj: true | ||
| interactive_display: | ||
| show_videos: true | ||
| start_frame: 40 | ||
| end_frame: 140 | ||
| display_freq_mask: true | ||
| end_frame: -1 #-1 means all frames | ||
| output_result: true | ||
| output_dir: user_data/output | ||
| id: denoise_calcium_imaging | ||
| mio_model: mio.models.process.DenoiseConfig | ||
| mio_version: 0.6.1 | ||
| noise_patch: | ||
| enable: true | ||
| method: [gradient, black_area] | ||
| gradient_config: | ||
| threshold: 20 | ||
| black_area_config: | ||
| consecutive_threshold: 30 | ||
| value_threshold: 0 | ||
| min_rows: 10 | ||
| output_result: true | ||
| output_noise_patch: true | ||
| output_noisy_frames: true | ||
| frequency_masking: | ||
| id: frequency_masking_calcium_imaging | ||
| mio_model: mio.models.process.FrequencyMaskingConfig | ||
| mio_version: 0.6.1 | ||
| enable: true | ||
| cast_float32: true | ||
| spatial_LPF_cutoff_radius: 15 | ||
| vertical_BEF_cutoff: 2 | ||
| horizontal_BEF_cutoff: 0 | ||
| output_result: true | ||
| minimum_projection: | ||
| enable: true | ||
| normalize: true | ||
| output_result: true | ||
| interactive_display: | ||
| show_videos: false | ||
| start_frame: 0 | ||
| end_frame: 100 | ||
| display_freq_mask: false | ||
| end_frame: -1 | ||
| output_result: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.