Skip to content

Instantly share code, notes, and snippets.

@hertzsprung
Created July 29, 2015 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hertzsprung/2bd3666ae691976190af to your computer and use it in GitHub Desktop.
Save hertzsprung/2bd3666ae691976190af to your computer and use it in GitHub Desktop.
MSc computing notes

Work through an exercise of processing a CSV file containing time series data on amount of sunshine.

Exercise requirements

TODO

On the day

  1. Plan conceptual steps together to create a flowchart on whiteboard
  • how to find and use existing code
  • take note of any assumptions
  1. Give everyone some code we wrote earlier, containing a runtime error (TODO: array-out-of-bounds, perhaps?) and a logic error (e.g. it adds all the non-sunshine hours)
  • get them to download it and run it in an IDE
  • what is going wrong?
  • techniques for dealing with errors
  • create a back up before trying to fix anything
  • have students write their own one-line test file and fix the bugs

Handout info

  • URLs for the CSV processing Python code (buggy and debugged versions)
  • links to StackOverflow, IDE
  • TODO: anything else? automated testing? unix shell (how does this work on the met windows PCs?)
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment