Heads up on modelx v0.15.0 #49
fumitoh
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependency tracing is one of the most useful features of modelx. The next version of modelx will introduce a major enhancement in the tracing feature.
Currently the
preds
method of a Cells lists other Cells that the Cells depends on when calculating its value.Here's a sample script for illustration.
The
bar
Cells depends on one Cellsfoo
, and 3 References,x
,Child.y
, andChild.GrandChild.z
.Below,
bar.preds(3)
returns a list containingfoo(3)
, which is the only Cells element thatbar(3)
depends on.v0.15.0, the next version of modelx, will introduce the
precedents
method. The method returns a list containing not only Cells elements, but also References that the Cells depends on when calculating its value:Accordingly, spyder-modelx will be updated to show the Reference elements in MxAnalyzer.
Beta Was this translation helpful? Give feedback.
All reactions