fix remaining str/byte issue - byte encode/decode fix in event viewer#1174
Closed
csoeller wants to merge 1 commit into
Closed
fix remaining str/byte issue - byte encode/decode fix in event viewer#1174csoeller wants to merge 1 commit into
csoeller wants to merge 1 commit into
Conversation
Contributor
|
Definitely need to tidy up the bytes stuff on events in a cleaner way. Trying to decide whether best to just merge and kick the can down the road, or to fix properly. |
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.
Addresses bug in eventLogViewer, see error message further below.
Is this a bugfix or an enhancement?
bugfix
original error message:
Proposed changes:
As a fix I copied the code from higher up in the
eventLogViewermodule to the 2nd place where the event source type from the charts is being used as a key:While this works it feels like a pretty dirty kludge. It almost certainly is a product of the py2 -> py3 transition but it feels like asking for issues at later times. The stored event names in the HDF files are
bytetype, while the processing inpipeline._processEventsmixes use of byte literals and strings. E.g.versus
This is then used in
eventLogViewerand means that some entries arestringtypes while others arebyteliterals, necessating the code above. Ideally, a more maintainable solution would be nicer, that avoids breakages when code is added/altered. Not sure what the better approach would look like, so looking for suggestions.Checklist:
much simpler if this is kept separate from functional changes]
If an enhancement (or non-trivial bugfix):