Closed jwestw closed 1 year ago
I just rebased master to this branch to kill of the merge conflicts. https://github.com/ONSdigital/SDG_11.2.1/compare/005a81d62c7e213bdc9e069b7d2fd2ff2e2282db..497e18b0fabc0a0823b077ed4b1b9abefe32b985 Should be all ready to go now.
When import from main
in Scotland, then will run the whole script. Therefore, need to add if name = main block.
requirements.txt
The author has responded to my review and made changes to my satisfaction.
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.
@nkshaw23 I have fixed the problem of importing the df from main now. the `if name == 'main'" block was in the wrong place.
The code now runs into another problem (at least for me). This is unrelated to my ticket and is detailed here: https://github.com/ONSdigital/SDG_11.2.1/issues/367
Code ran through with the following output - seems slightly suspicious to me that every person is served but need to look in QGIS to see whats going on. This happened for another LA aswell so need to investigate.
A few general comments for the scotland process (not necessarily related to the MR code)
1) The oa to la mapper is massive. It contains mappings for the whole of the UK and we only use 2 columns. Could strip the dataset and re-upload to sync?
2) A couple of warnings of mixed dytpes
The pipeline is running successfully however there is still a need to QA the figures this is covered in ticket #352 A ticket about resolving the warnings has been created here #370
Order to merge pull requests: 1) This one: #360 2) #361 3) #366
Pull Request submission
SDG_11.2.1_main.py
intomain.py
as this is more in line with standard practice (I know this wasn't part of the ticket and I honestly can't remember what prompted me to make this change at this point. I can change it back if it's going to create any regression errors)stops_geo_df
) from main. (Oh actually this is why I changed the name of the script, so I could simply writefrom main import....
whereasfrom SDG_11.2.1 import...
didn't work due to the full stops.) I know importing a data object like this probably isn't best practice, but it prevents use and repeating code carrying out the same data import twice. When the pipelines are merged, this will not be a problem.buffd_la_stops_geo_df
to make it clearer what's going on..gitkeep
files so the scotland data folder structure will be keptInsert any instructions to help the reviewer, e.g. "install new requirements from
requirements.txt
"Nothing extra needed in terms of dependencies
*Let the reviewer know what data files are needed (to be grabbed from sync)
Make sure you have all the Scotland data from sync! It won't run without those
Closes or fixes
Closes #351
Code
Documentation
Any new code includes all the following forms of documentation:
parameters
andreturns
for all major functionsData
Testing