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

Add Excel route model conversion function #37

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

Conversation

landont168
Copy link

No description provided.

Copy link
Collaborator

@rodrigotiscareno rodrigotiscareno left a comment

Choose a reason for hiding this comment

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

Really good stuff!! Thanks Landon. One small request, can we make this script accept two command line parameters, one the path to the raw file and two, the path to the output file? Other than that good to go

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.

@landont168 PR looks solid. I have mentioned couple of changes and also there are some linting errors. You can fix them by checking it with the python black formatter
Most of them can be fixed by running black etk_route.py (installation here: https://github.com/psf/black?tab=readme-ov-file#installation-and-usage)

@@ -0,0 +1,41 @@
# Note: Need to 'pip install openpyxl'
Copy link
Member

Choose a reason for hiding this comment

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

You can add this to the requirements.txt.
To do that, just do pip freeze and get all of the requirements and paste them or pipe them to requirements.txt
Command: pip freeze > requirements.txt


def main():
# Set Excel file name
excel_file_name = "route-steps-2022.xlsx"
Copy link
Member

Choose a reason for hiding this comment

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

As @rodrigotiscareno mentioned take this as a command line input. To make it a bit better try and use the questionary library used by Ryan in the other files and take it using that.
Also add the command line argument to take the output file (different from the input file)

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