-
Notifications
You must be signed in to change notification settings - Fork 295
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
#926 Initialize assy metadata #928
Conversation
As implemented here the initialization is to None as this is slightly more memory efficient than an empty dict {}. However, this makes working with metadata a little more complex as elements can't be added until it's created which requires an if / then. Adam probably anticipated this - what do you think of initialization to {}? |
Codecov Report
@@ Coverage Diff @@
## master #928 +/- ##
==========================================
- Coverage 96.11% 96.05% -0.06%
==========================================
Files 39 39
Lines 9130 9162 +32
Branches 1017 1107 +90
==========================================
+ Hits 8775 8801 +26
- Misses 206 209 +3
- Partials 149 152 +3
Continue to review full report at Codecov.
|
Does anyone know what the problem is here? The code is working in my build. |
The glibc error in the Linux builds is effecting another PR and will be addressed. You can ignore the codecov failure. It is over-sensitive sometimes. |
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.
Thanks @gumyr !
Merging, thanks for the contribution @gumyr ! |
All green now with the 18.04 fix and it has been approved, so I'm going to merge. |
Looks like @adam-urbanczyk beat me to it. Thanks @gumyr |
With this change
metadata
is a full instance variable of theAssembly
class with a default ofNone
. The_copy()
method was changed to copy metadata ensuring that metadata added in a sub-assembly is maintained.A new test verifies that the metadata is present and editable in both the base and sub-assembly.