-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix echo sometimes printing ..... #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks @sloretz
# convert each key and value in the mapping | ||
new_value = {} if isinstance(value, dict) else OrderedDict() | ||
for k, v in value.items(): | ||
new_value[_convert_value(k)] = _convert_value( | ||
new_value[_convert_value(k, truncate_length=truncate_length)] = _convert_value( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do see a major problem with this change: the keys in dictionary are now also being truncated which was not the case before. This will potentially lead to different keys being reduce to the same shortened key and therefore "loose" data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point !
* Support passing list of parameter file paths * Support pathlib Paths * WIP tests * Move tests to a separate package * Test parameters get resolved * Use EnvironmentVariable instead of ThisLaunchFileDir Doesn't work inside scripts * Env var needs to be specified in calling context not node itself * Add tests for invalid parameter arguments * Update other tests for consistency * Fixup * Update wording when not a file * typo
* show error strings as part of the flake8 test Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com> * call new API which exposes the errors Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
Fixes #129
If
truncate_length
was less than 3 then the...
added to a list or sequence would be truncated. This fixes the issue by refactoring_convert_value
to only have one block of conditionals.I also changed
bytes
from being displayed as"b'somebytestring'"
to a string where every byte has been converted withchr
.To test this PR manually
and
CI
connects to #129