khuyentran1401 / Data-science

Collection of useful data science topics along with articles, videos, and code
https://khuyentran1401.github.io/Data-science/
4.04k stars 1.02k forks source link

Milestone dependents #8

Open jsvarnson opened 3 years ago

jsvarnson commented 3 years ago

Hello, First off let me say I love this library and am really excited about its use cases. I created a function that allows me to write up a project outline in an excel file and use that to dynamically make a Gantt chart. This is critical because I want all the details to come fully from the excel file and I don’t want to update any of the code to create the chart. Currently I’m able to handle the tasks and resources without issue.

The issue arises when I get to milestones. It appears your milestone dependent_of kwarg only accepts a task object, or specific task objects delimitated by commas, which is preventing me from dynamically putting in any number of task objects from a list or tuple. I tried assigning a tuple and list and I got the error that neither of those objects had an end date (I assume the end date is used to place the milestone on the chart). To workaround this right now in the excel file I am simply listing a milestone and its last dependent task which I can then reference directly. Obviously this is not as neat as having the milestone marker refer to each of its dependent tasks and I believe it could be accomplished if the dependent_of kwarg could accept tuples or lists. Is there any way you would be able to implement that functionality?