ONSdigital / SDG_11.2.1

Analysis for the UN Sustainable Development Goal 11.2.1
https://onsdigital.github.io/SDG_11.2.1/
Apache License 2.0
5 stars 7 forks source link

331 tidy up for bustrain timetable process #369

Closed jwestw closed 1 year ago

jwestw commented 1 year ago

Pull Request submission

No new requirements are needed to run this.

No new data is required to run this.

Closes or fixes

Fixes #331

Code

Documentation

Any new code includes all the following forms of documentation:

Data

Testing


Peer Review Section

Final approval (post-review)

The author has responded to my review and made changes to my satisfaction.


Review comments

Insert detailed comments here!

These might include, but not exclusively:

Your suggestions should be tailored to the code that you are reviewing. Be critical and clear, but not mean. Ask questions and set actions.

james-westwood commented 1 year ago

I have killed off all conflicts by rebasing master into this branch - hopefully keeping all my changes.

I have checked, and the code now works for me.

james-westwood commented 1 year ago

Just done a final linting with autopep8 to really tidy this up.

nkshaw23 commented 1 year ago

One issue to resolve.

When I run SDG_bus_timetable.py I need to add src to the data_output import in data_transform.

However when I run main I then need to remove it.

Is there a way we can have it imported that satisfy both modules

jwestw commented 1 year ago

I have sorted the problem RE: local imports of our own modules from the scr folder. The timetable python files are now all within scr, the parent is added to path, and this solves the problem. src. is not needed anywhere now.

I have also re-linted.

And I have re-based so there are no conflicts with master

@nkshaw23 please review and approve.