-
Notifications
You must be signed in to change notification settings - Fork 96
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
Update SBP fields when materializing child objects. #130
Conversation
Test FAILed. |
retest this please |
Test PASSed. |
Found this while writing a unit test last night, do not merge yet. |
fc06ba7
to
f7cc6fd
Compare
Test FAILed. |
retest this please |
Test PASSed. |
f7cc6fd
to
7110f3b
Compare
Test PASSed. |
k, this is ready to go whenever. |
@@ -130,6 +135,12 @@ class ((( m.identifier | classnameify )))(SBP): | |||
def __repr__(self): | |||
return fmt_repr(self) | |||
((* if m.fields *)) | |||
|
|||
def __update(self): |
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.
Could this just be to_binary(self)
?
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.
Yep!
Looks good. It's increasingly difficult to navigate the serialization/deserialization paths here, but the external interface looks stable and good. |
7110f3b
to
26b13cc
Compare
Test FAILed. |
Oh joy! Apparently, instantiating an SBP message and then attempting to serialize results in an error from the parent SBP object, which hasn't been backfilled (crc, etc.). This adds an __update call to children objects to update these fields. Came up while writing some inline logs for unit testing a new sbp_log_analysis test. /cc @fnoble @mfine
26b13cc
to
a430fcf
Compare
Test PASSed. |
Update SBP fields when materializing child objects.
Oh joy! Apparently, instantiating an SBP message and then attempting
to serialize results in an error from the parent SBP object, which
hasn't been backfilled (crc, etc.). This adds an __update call to
children objects to update these fields.
/cc @fnoble @mfine