-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Open ScenarioConfig API to export a scenario config graph as a picture. #1592
Comments
I certainly don't like this idea, involving both the import of another (large) package but also impacts the global product homogeneity, as Taipy GUI and Taipy Studio already provide ways of representing DAGs. |
New Quest!A new Quest has been launched in @Avaiga’s repo. Some loot has been stashed in this issue to reward the solver! 🗡 Comment ⚔️ When you submit a PR, comment Questions? Check out the docs. |
@quest-bot loot #1932 |
Check the docs for more info. |
@quest-bot embark |
@HimangshuYadav has embarked on their Quest. 🗡
Questions? Check out the docs. |
@jrobinAV could you please assign this issue to me, I would like to take this up. |
@quest-bot loot #1592 |
Check the docs for more info. |
Yep sure, you are assigned, @xyfer17 . |
Hey can you assign me this |
@jrobinAV can you please tell me that image format should be a svg or png ( mention if any other format is suitable ), also what would be the warning log message please specify? |
@xyfer17 The functionality is really for developers, not for end-users, so I don't think the image format matters. If you need an external package with a specific version range, and if the package is not installed, the log message could be:
|
…ion' into bug/Avaiga#1592-graph-visualization
The purpose of this issue is to let developers draw a scenario config DAG using matplotlib (or an alternative) and networkx to visualize the graph he just created, helping him understand if it is correct.
Description
In the
ScenarioConfig
class (located attaipy/core/config/scenario_config.py
), we want a new method nameddraw()
that exports the scenario configuration graph (a DAG) as an image file.The graph comprises the input
DataNodeConfigs
, the outputDataNodeConfigs
, and theTaskConfigs
as nodes.There is a directed edge from a
DatanodeConfig
node to aTaskConfig
node if and only if theDatanodeConfig
is aTaskConfig
input.A directed edge is from a
TaskConfig
node to aDatanodeConfig
node if and only if theDatanodeConfig
is aTaskConfig
input.Implementation constraint.
If a new package is required (matplotlib?, marmaid?, etc.), it must be made optional. The
draw
function should check the presence of the package before using it. If the package is not installed, thedraw
function should log a warning message and return doing nothing else.https://networkx.org/documentation/stable/reference/drawing.html
The text was updated successfully, but these errors were encountered: