Model.children and Model.parent
See original GitHub issueWould it be straightforward to create children and parent attributes for all Model objects? Proposed usage:
Mission.children = ["FlightProfile", "Atmosphere", "AircraftPerformance"]
AircraftPerformance.children = ["Aircraft", "FuselagePerf",.... ]
Aircraft.parent = "AircraftPerformance"
I understand it’s possible to re-construct these by iterating over all model varkeys and using lineage
, but it seems like it would be more elegant to create during model creation, i.e. execution of Model.__init__
?
This would help with visualizing model structures. Related to #1088.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Parent Modeling: Helping parents improve their children's ...
In one case, Parent Modeling is a therapeutic intervention employed by clinicians to teach parents how to change their children's behaviors, ...
Read more >24 models who followed in their parents' footsteps - Insider
Some of today's biggest models are related to former supermodels. Cindy Crawford and her model daughter, Kaia Gerber, share an uncanny ...
Read more >Modeling behavior: how children copy their parents
Be a good role model: You are your child's first and most important role model. · Point out the positives: Reinforce and acknowledge...
Read more >The Parent-Adult-Child model: the basics
It has two functions. One is to enable people to be better actual parents of their children. The other is to enable many...
Read more >Role Model the Behavior You Want to See From Your Kids
Every parent wants to raise kids who are kind to others. This goal becomes a reality when you model respect and empathy in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this until there’s a specific usecase…
It’s something I’ve dallied with adding a few times, but it always turns out to not quite be necessary…happy to add if there’s a specific usecase though, like ended up happening with posynomials.