Skip to content

SF_OperationPowerSpectrum: Fix average option with SweepBrowser data#2418

Merged
t-b merged 2 commits into
mainfrom
bugfix/2418-powerspectrum-average-sweepbrowser
May 29, 2025
Merged

SF_OperationPowerSpectrum: Fix average option with SweepBrowser data#2418
t-b merged 2 commits into
mainfrom
bugfix/2418-powerspectrum-average-sweepbrowser

Conversation

@t-b
Copy link
Copy Markdown
Collaborator

@t-b t-b commented May 6, 2025

Since fd5ee28 (SF: Use correct LNB getter in SF_GetTraceColor,
2024-10-04) we require mapIndex to be valid when fetching the labnotebook
for sweep data in SF_GetTraceColor.

But average data was always treated sweep-like but that does not have a
map index. This can also be not easily fixed as it is not clear which mapIndex to use
for sweeps from multiple experiments. Instead we now use the default
average color.

This also makes the metadata entry SF_META_AVERAGED_FIRST_SWEEP obsolete.

Close #2390

@t-b t-b requested review from MichaelHuth and timjarsky as code owners May 6, 2025 18:24
@t-b t-b enabled auto-merge May 6, 2025 18:24
@t-b t-b added the PR:NeedsBackport (Pull requests only) Mark it as requiring a backport to the latest release branch label May 6, 2025
t-b added 2 commits May 6, 2025 22:13
Since fd5ee28 (SF: Use correct LNB getter in SF_GetTraceColor,
2024-10-04) we require mapIndex to be valid when fetching the labnotebook
for sweep data in SF_GetTraceColor.

But average data was always treated sweep-like but that does not have a
map index. This can also be not easily fixed as it is not clear which mapIndex to use
for sweeps from multiple experiments. Instead we now use the default
average color.

This also makes the metadata entry SF_META_AVERAGED_FIRST_SWEEP obsolete.
@t-b t-b force-pushed the bugfix/2418-powerspectrum-average-sweepbrowser branch from 60c0caf to ef30c2d Compare May 6, 2025 20:13
@t-b t-b removed the PR:NeedsBackport (Pull requests only) Mark it as requiring a backport to the latest release branch label May 7, 2025
@timjarsky
Copy link
Copy Markdown
Collaborator

looks good

image

@t-b t-b merged commit 15e3a5e into main May 29, 2025
19 checks passed
@t-b t-b deleted the bugfix/2418-powerspectrum-average-sweepbrowser branch May 29, 2025 23:30
@timjarsky timjarsky assigned t-b and unassigned timjarsky May 29, 2025
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.

Powerspectrum triggers assertion

2 participants