Conversation
lcdurkan
approved these changes
Mar 27, 2026
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.
Background
Previously, flag columns store bitwise integers, but there is no way to recover human-readable flag names. This PR adds a decoding (and encoding) ability.
Main changes
FlagColumn(flag_manager.py)is_decoded: bool = Falseto keep the state of where the column is decoded or not.decode(df)- converts bit integer column to List(String) of flag names in ascending bit-value order. Flag value of 0 produces []encode(df)- converts List(String) back to the bit-value.add_flagandremove_flagtake into account theis_decodedstate. If the column is decoded, they do a round rtip of encode -> add/remove flag -> decodeTimeFrame(base.py)decode_flag_column- returns new TimeFrame with the integer flag column replaced by List(String)encode_flag_column- returns new TimeFrame with the List(String) column replaced by it's equivalent bit integer valuesNotes
Usage