Skip to content

Re-order removing and adding display layers#57

Closed
Tiomat85 wants to merge 2 commits intonion-software:masterfrom
Tiomat85:Iss55
Closed

Re-order removing and adding display layers#57
Tiomat85 wants to merge 2 commits intonion-software:masterfrom
Tiomat85:Iss55

Conversation

@Tiomat85
Copy link
Contributor

@Tiomat85 Tiomat85 commented Oct 16, 2025

Fixes #55

Fix issues with copying display layers when splitting SI sequences. Moved across the fix from cmeyer@48b60bd to the sequence_split so the display_layers object is used rather than cloned and attempted to be stitched back.

@Tiomat85 Tiomat85 marked this pull request as draft October 16, 2025 13:59
@Tiomat85 Tiomat85 marked this pull request as ready for review October 16, 2025 15:05
Mirrored fix from 48b60bd

Moved across the fix from 48b60bd to correctly handle display layer transfer.
@cmeyer cmeyer marked this pull request as draft October 16, 2025 17:38
Copy link
Contributor

@cmeyer cmeyer left a comment

Choose a reason for hiding this comment

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

Can you provide an associated integration test that succeeds in cases where it used to succeed; fails in the case in question before the patch; and succeeds in all cases after the patch. Changed to draft until that is provided. The analogous commit 48b60bd includes a test.

Also, the commit message needs to follow commit message guidelines, similar to 48b60bd. "Fix issues with copying display layers when splitting SI sequences."

Also, it is helpful to put "Fixes #55" in the top comment for the PR. This will automatically add a link to the PR from #55. "Addresses #55" does not automatically add the link. GitHub docs for automatic linking.

Finally, I didn't test the code - I'm waiting for the integration test to do a full review; but the code so far looks ok at first glance.

Added Integration test checking sequences for sequence split.

Test replicates the scenario as described in Issue 55, failing before the fix and working after.
@Tiomat85 Tiomat85 assigned Tiomat85, lisham2000 and KRLango and unassigned Tiomat85 Oct 21, 2025
Copy link
Contributor

@KRLango KRLango left a comment

Choose a reason for hiding this comment

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

LGTM

@cmeyer
Copy link
Contributor

cmeyer commented Oct 27, 2025

Merged c4225f3

@cmeyer cmeyer closed this Oct 27, 2025
@Tiomat85 Tiomat85 assigned Tiomat85 and unassigned lisham2000 and KRLango Oct 29, 2025
@Ion-e
Copy link

Ion-e commented Nov 24, 2025

Issue verified as fixed.

Display layers are now not copied, user can copy them afterwards.

Thanks!

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.

Split sequence not working with a sequence of scan-sync spectra

5 participants