Skip to content
Snippets Groups Projects
Commit 8854e456 authored by Maël Madon's avatar Maël Madon
Browse files

fix: bug when job submitted at t=0

parent 831d11ac
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,9 @@ class User: ...@@ -44,6 +44,9 @@ class User:
######## Private methods ######## ######## Private methods ########
def __is_new_session(self, date_now): def __is_new_session(self, date_now):
"""Checks if a new session should be started according to the delimitation approach (see Zackay and Feitelson 2013)""" """Checks if a new session should be started according to the delimitation approach (see Zackay and Feitelson 2013)"""
if len(self.sessions) == 0:
return True
if self.delim_approach == 'arrival': if self.delim_approach == 'arrival':
inter_arrival_time = date_now - self.__last_submit_time inter_arrival_time = date_now - self.__last_submit_time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment