mbafrani / AutomaticProcessSimulation

Automatic process simulation using Simpy and Pm4py.
Other
16 stars 5 forks source link

Simulation_activity: call before reference #12

Closed mbafrani closed 4 years ago

mbafrani commented 4 years ago

In Simualtion_activity.py in line 148, there is a call before reference fore next_time. If the previous if doens pass, and second one pass then next_time has no value.

ghost commented 4 years ago

The else condition has been added such that the next_time variable takes the value of time variable when the next event is not available. This will make the activity time for that event as 0, but if there is no next event and the complete time stamp is not available, there is no way to determine the time taken by that event.