Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver profiling sim #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Driver profiling sim #30

wants to merge 1 commit into from

Conversation

jinayang15
Copy link

Copy link
Member

@probro27 probro27 left a comment

Choose a reason for hiding this comment

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

@jinayang15 Great work with the simulation stuff. Seems really solid. Great job.
I understand the logic, but I feel it would be great if you could write a small README explaining the process of simulating, and some basic calculations you are making, plus random values.
Apart from that just ensure you use triple quotes for multi-line comments as I have highlighted in my review.
Great job and also add a picture of the plots in the PR description.

import random
import names

#simulating driver data
Copy link
Member

Choose a reason for hiding this comment

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

Please use triple quotes for documenting multiple lines code logic or field descriptions.
For single line comments the # is fine, and add a space after the # and then write the comment.

maxstop = 4
deltat = 3/60
num_drivers = 30
'''
Copy link
Member

Choose a reason for hiding this comment

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

Move the triple quotes before the initialization of values.

class Driver:
#drivers - number of drivers
#inc - speed increment in km/h
drivers = 0
Copy link
Member

Choose a reason for hiding this comment

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

Great use of static variables :)

@probro27
Copy link
Member

probro27 commented Jan 24, 2024

@jinayang15 Pull latest main when pushing. I have removed the workflow so the tests will pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants