Repository navigation
fix: map flat fragments to dense columns in the given fragment type order - #471
Open
boopthesnoot wants to merge 1 commit into
Open
boopthesnoot wants to merge 1 commit into
boopthesnoot wants to merge 1 commit into
Conversation
…rder create_dense_matrices builds its matrices with the columns in the order of charged_frag_types, but _calc_column_indices numbered the columns in sort_charged_frag_types order. For an unsorted list such as ["b_z1", "y_z1", "b_z2", "y_z2"], a b_z2 fragment was written into the y_z1 column. Sorted lists, as get_charged_frag_types returns, were not affected.
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
create_dense_matrices(and soSpecLibFlat.calc_dense_fragmentsandto_speclib_base) builds the dense matrices with columns in the order ofcharged_frag_types, but_calc_column_indicesnumbered the columns insort_charged_frag_typesorder. With an unsorted list such as["b_z1", "y_z1", "b_z2", "y_z2"], a b_z2 fragment was written into they_z1column and a y_z1 fragment into theb_z2column. Sorted lists, asget_charged_frag_typesreturns them, were not affected.Change
_calc_column_indicesmaps each fragment to its column in the given order.test_speclib_base_to_flat_conversionnow also runs with the dense columns in reverse order. That case fails on main and passes with this change.