sumo icon indicating copy to clipboard operation
sumo copied to clipboard

update sumolib. with Condition and earlyTarget in Phase

Open aminissn opened this issue 1 year ago • 8 comments

I added my python code under tools/tls with all necessary changes in sumolib init

aminissn avatar Jul 17 '24 09:07 aminissn

  • Please put busPriority.py into a separate pull request (it's not quite ready for inclusion, while the rest of the code is fine)
  • Please add the new vTypes argument in induction_loop.py at the end of the argument list to ensure backward compatibility with existing code (default argument should be the empty string).

namdre avatar Jul 17 '24 10:07 namdre

hopefully this is fine, even though the failing eca test bother me every time!

aminissn avatar Jul 17 '24 10:07 aminissn

Sorry about the ECA thing, I reopened the issue at Eclipse. Could you try to do this without f-strings? Unfortunately there are still some python2 users out there.

behrisch avatar Jul 18 '24 14:07 behrisch

hopefully this is fine, even though the failing eca test bother me every time!

@aminissn I missed it due to a red herring last time, but we found the issue now! You have 2 Eclipse accounts, and the one that's linked to this GH account doesn't have an ECA, while the one that has an ECA doesn't have the Github account link. We'll need to at least clear the GH field of the unused account if you want to update the account you've been using, but the real solution is fixing the accounts and merging them into one. Can you check in on https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/4780#note_2547110 so we can get that started for you?

autumnfound avatar Jul 18 '24 16:07 autumnfound

Also to clarify, I can confirm at this time that the email you used in association with the commits DOES have an ECA, but when we do Github checks, we use the Github username when available as it's an explicit link to accounts. That explains why when we check your email its fine, and why your account has an ECA, but fails here.

autumnfound avatar Jul 18 '24 16:07 autumnfound

Also to clarify, I can confirm at this time that the email you used in association with the commits DOES have an ECA, but when we do Github checks, we use the Github username when available as it's an explicit link to accounts. That explains why when we check your email its fine, and why your account has an ECA, but fails here.

Is there any specific solution for this? I am using the same email address for both Github and Eclipse. UPDATE: I removed my Github username from my other Eclipse account and added it to this email address. can I revoke this pull request or shall I create a new one to test if it works?

aminissn avatar Jul 18 '24 16:07 aminissn

can we merge these changes now? so I can keep working from the latest development version of the main distribution for bus priority?

aminissn avatar Jul 23 '24 09:07 aminissn

As @behrisch wrote, please avoid the f-strings for compatibility reasons. Something more:

m-kro avatar Jul 24 '24 11:07 m-kro

@aminissn I integrated the base of your work concerning earlyTarget and conditions. Most of the functions you added did not look immediately useful to a broader audience so I skipped them for now. I think there is no real benefit in wrapping all the phase access again if the user can already retrieve the phase list and work with it. The Condition class was not used so I skipped it as well. I hope with some minor adaptions the bus_priority script will still work. Please open another PR for that one! Thanks!

behrisch avatar May 19 '25 13:05 behrisch