Skip to content
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

Implement a draw method in scenario config for debug purpose. #2289

Merged
merged 8 commits into from
Nov 29, 2024

Conversation

jrobinAV
Copy link
Member

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

A draw method has been implemented to export a scenario config graph as a PNG file.
The method requires matplotlib to be installed to run. However, matplotlib should be installed independently from taipy as it is not a taipy dependency.

Related Tickets & Documents

Checklist

We encourage you to keep the code coverage percentage at 80% and above.

  • Does this solution meet the acceptance criteria of the related issue?
  • Is the related issue checklist completed?
  • Does this PR add unit tests for the developed code? The unit tests are skipped as they contain no assert.
  • End-to-End tests have been added or updated? Not applicable
  • Was the documentation updated, or was a dedicated issue for documentation created? (If applicable)
  • Have the release notes been updated? (If applicable)

@jrobinAV jrobinAV added 🧪Testing Related to tests and other QA activities. 🟩 Priority: Low Low priority and doesn't need to be rushed Core: ⚙️ Configuration Core: 🎬 Scenario & Cycle labels Nov 28, 2024
@jrobinAV jrobinAV self-assigned this Nov 28, 2024
Copy link
Contributor

github-actions bot commented Nov 28, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
19397 16889 87% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
taipy/core/config/scenario_config.py 80% 🟢
TOTAL 80% 🟢

updated for commit: 9de00d1 by action🐍

trgiangdo
trgiangdo previously approved these changes Nov 29, 2024
Copy link
Member

@trgiangdo trgiangdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

taipy/core/config/scenario_config.py Outdated Show resolved Hide resolved
[task_config_1, task_config_2, task_config_3],
[dn_config_5],
)
scenario_cfg.draw()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can assert the path exists when running this test and similarly for other draw tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matplotlib won't be installed in GitHub. So it should do nothing. I don't know how to test that, then.

Co-authored-by: Đỗ Trường Giang <do.giang@avaiga.com>
@jrobinAV jrobinAV merged commit fcd6497 into develop Nov 29, 2024
126 checks passed
@jrobinAV jrobinAV deleted the feature/#1592-draw branch November 29, 2024 17:12
@jrobinAV jrobinAV restored the feature/#1592-draw branch November 29, 2024 17:12
@jrobinAV jrobinAV deleted the feature/#1592-draw branch November 29, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core: ⚙️ Configuration Core: 🎬 Scenario & Cycle 🟩 Priority: Low Low priority and doesn't need to be rushed 🧪Testing Related to tests and other QA activities.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants