Week 14 overview

Learning Objectives:

  1. Version control with Git:

  • branches

  • pull requests

  • issues

Learning and Participation Activities with Due Dates (Wed. Nov. 30, end of day)

  1. Modifications to your SoS notebooks

    a. Open your project repository on GitHub and view the Issue that has been assigned to you

    b. View the Sync Dev Branch document

    c. Designate one person on your team, who will then follow the workflow in that document and inform the rest of the team when it’s done.

    d. Once you have synced up and checked out your dev branch, open up a JupyterLab session on Turing

    e. Browse to your team’s midterm folder

    f. Edit the notebook you created:

    • Everyone makes this change, which incorporates some additional lines for your playlist.sos file. These allow for you to be named as the author of your visualization; makes all of your notebooks part of an ERA5 subcategory which will make it easy to find and load on the SoS iPad, and also make the globe “spin” as soon as your product is loaded. Therefore, please modify the relevant code cell in your notebook so it reads as follows:

plFileObject = open(playlistFname, 'w')
subCat = "ERA5"
cRet = "\n" # New line character code

##Modify these next three lines to fit your case
nameStr = "Cleveland Superbomb 1978 SLP/500 Z"
descriptionStr = '{{ ERA-5 January 26 1978 ("Cleveland Superbomb") }}'
creaName = "Firstname Lastname" # Put your name here!

plFileObject.write("name = " + nameStr + cRet )
plFileObject.write("description = " + descriptionStr + cRet)

plFileObject.write("pip = ../labels/colorbar.png" + cRet)
plFileObject.write("pipheight = 10" + cRet)
plFileObject.write("pipvertical = -35" + cRet)

plFileObject.write("label = ../labels/labels.txt" + cRet)
plFileObject.write("layer = Grids" + cRet)
plFileObject.write("layerdata = ../2048" + cRet)

plFileObject.write("firstdwell = 2000" + cRet)
plFileObject.write("lastdwell = 3000" + cRet)
plFileObject.write("fps = 8" + cRet)

plFileObject.write("zrotationenable = 1" + cRet)
plFileObject.write("zfps = 30" + cRet)

plFileObject.write("subcategory = " + subCat + cRet)
plFileObject.write("Creator = " + creaName + cRet)
                   
plFileObject.close()

  • Then, if there were any other suggestions in the Issue, make any other changes necessary to respond to them.

  • Re-run the notebook

  • Check the re-generated graphics / colorbar / labels.txt / playlist.sos

g. Once you are satisfied with the edited notebook, use git to stage, and commit your changes

h. Push your commit up to the dev branch on GitHub

i. Make a pull request (PR) that pertains to your modified notebook

j. Do not merge the PR! Instead, your instructor will review the change and either merge it himself or request additional changes.


Post questions you have on the Week 14 forum.