Skip to content

Per-bin downsampling (--point_stat) and symmetric sine-axis labels#27

Open
FrankS-2024 wants to merge 3 commits intoharbourlab:masterfrom
FrankS-2024:new-features-branch
Open

Per-bin downsampling (--point_stat) and symmetric sine-axis labels#27
FrankS-2024 wants to merge 3 commits intoharbourlab:masterfrom
FrankS-2024:new-features-branch

Conversation

@FrankS-2024
Copy link
Copy Markdown
Contributor

Ensure --point_stat controls how traces are downsampled into bins (max vs average) so spikes are preserved when requested.
Make sine plots use a single shared y-scale so the positive and negative sides share the same magnitude and labels show symmetric values (e.g. 30 and -30 for a +30/-15 signal).

Implemented per-bin aggregation in make_raw_data_filled so when --point_stat max is set a bin is reduced by max(...), otherwise the existing weighted average is used.
Updated sine-track rendering to use get_relative_hight_custom(..., shared_max_value) for both control and treatment so amplitudes are scaled consistently.

Ensure --point_stat controls how traces are downsampled into bins (max vs average) so spikes are preserved when requested.
Make sine plots use a single shared y-scale so the positive and negative sides share the same magnitude and labels show symmetric values (e.g. 30 and -30 for a +30/-15 signal).

Implemented per-bin aggregation in make_raw_data_filled so when --point_stat max is set a bin is reduced by max(...), otherwise the existing weighted average is used.
Updated sine-track rendering to use get_relative_hight_custom(..., shared_max_value) for both control and treatment so amplitudes are scaled consistently
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.

1 participant