Skip to content

[Bugfix] EDC normalization#117

Merged
mberz merged 1 commit intomainfrom
fix/edc-multichannel-handling
Jan 21, 2026
Merged

[Bugfix] EDC normalization#117
mberz merged 1 commit intomainfrom
fix/edc-multichannel-handling

Conversation

@hoyer-a
Copy link
Copy Markdown
Member

@hoyer-a hoyer-a commented Jan 13, 2026

Changes proposed in this pull request:

  • channel_independent=True / normalization=True takes the nanmax per channel and divides the edc by it
  • channel_independent=False / normalization=True takes the nanmax across all channels and divides the edc by it
  • Instead of using the first sample of the edc as max value np.nanmax is used

Note

The case presented in the weekly works correctly now.

@hoyer-a hoyer-a added this to the v0.4.2 milestone Jan 13, 2026
@hoyer-a hoyer-a added the bug Something isn't working label Jan 13, 2026
Copy link
Copy Markdown
Member

@f-brinkmann f-brinkmann left a comment

Choose a reason for hiding this comment

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

Looks fine as a bugfix before we tackle #116.

is_energy=False,
time_shift=True,
channel_independent=False,
channel_independent=True,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These were wrong before to counter the bug, right?

Copy link
Copy Markdown
Member Author

@hoyer-a hoyer-a Jan 13, 2026

Choose a reason for hiding this comment

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

Yes, it appears like the channel_independent=True and channel_independent=False behavior was swapped.

@github-project-automation github-project-automation bot moved this from Backlog to Reviewer Approved in Weekly Planning Jan 13, 2026
@hoyer-a hoyer-a moved this from Reviewer Approved to Require review in Weekly Planning Jan 15, 2026
@github-project-automation github-project-automation bot moved this from Require review to Reviewer Approved in Weekly Planning Jan 20, 2026
@mberz mberz merged commit 0fa4e4c into main Jan 21, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in Weekly Planning Jan 21, 2026
@mberz mberz deleted the fix/edc-multichannel-handling branch January 21, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants