Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #193 +/- ##
===========================================
+ Coverage 81.27% 81.68% +0.40%
===========================================
Files 52 53 +1
Lines 4309 4460 +151
Branches 748 792 +44
===========================================
+ Hits 3502 3643 +141
- Misses 627 631 +4
- Partials 180 186 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
|
rozyczko
left a comment
There was a problem hiding this comment.
-
I understand that the lack of graph integration is a feature? We let the list components do the edge/vertex tracking?
-
Good type safety but not sure we should allow duplicates. My ModelCollection just skips duplicates which might be even worse.
-
Where is the
dataproperty? Do we need it? -
Where is the aggregate
get_all_variables? Just run over all children and return that aggregate.
|
I can find no problems with the code, but it's also using some methods that are new to me, so I'm not an expert. As discussed elsewhere, I'll want this exact class, but using something like From what I understand, we could make that somewhat straightforward by introducing something like and replace calls to This seems to me to be cleaner than maintaining a copy of EasyList in EasyDynamics. I approve the name BTW. |
|
For documentation:
Yes, this is another step towards simplifying our
Do you mean duplicates of the same object in the list? I guess we can safeguard against that by adding a check in the setitem and append methods. But that will slow down setting and appending, but I guess we will never use
The 'data' property is an internal only property. It is also used for serialization. I did consider making it public, but then it would be weird that you have 2 ways of setting the lists data, i.e.: EasyList(1,2,3)
EasyList(data=[1,2,3])
EasyList(1,2,3, data=[4,5,6])And what would we do in the last case when both are provided? I felt it was simpler/cleaner to simply make
|
|
LGTM, upvote for the (optional) uniqueness checks.
|
|
remember to fix ruff format... |
rozyczko
left a comment
There was a problem hiding this comment.
Some serious issues found. Please consider addressing them.
Here is my initial thoughts on how the generic EasyList could look like. I haven't added tests yet, but please have a look.