Skip to content

Feature/mf dupdate#45

Merged
floriangc merged 4 commits intodevelopfrom
feature/MFDupdate
Jan 27, 2022
Merged

Feature/mf dupdate#45
floriangc merged 4 commits intodevelopfrom
feature/MFDupdate

Conversation

@floriangc
Copy link
Contributor

No description provided.

@floriangc floriangc added the enhancement New feature or request label Jan 25, 2022
@floriangc floriangc added this to the v1.0.0 milestone Jan 25, 2022
@floriangc floriangc requested a review from loubal January 25, 2022 12:41
@floriangc floriangc self-assigned this Jan 25, 2022
if self.remaining_length[i_user] < remaining_time * self.dict_speeds[curr_res][curr_mode]:
self.dict_accumulations[curr_res][curr_mode] -= user.scale_factor
remaining_time -= self.remaining_length[i_user] / self.dict_speeds[curr_res][curr_mode]
self.time_completion_legs[i_user][curr_leg] = time - remaining_time
Copy link
Contributor

Choose a reason for hiding this comment

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

We may need to keep this variable to get the travel time of a user

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes ok it will set the attribute arrival_time of the User class

@floriangc floriangc requested a review from loubal January 25, 2022 13:26
# Agent is on the network
if (not self.completed_trips[i_user]) and (self.started_trips[i_user]):
if self.started_trips[i_user]:
# Complete current trip leg
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not wrong, the objects bellow are used as list and not dict.

@floriangc floriangc merged commit 1fd8f72 into develop Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants