Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 592 Bytes

File metadata and controls

29 lines (21 loc) · 592 Bytes

python_skills

Tips and tricks to improve python coding skills

General concepts

  • Using ipython vs python vs jupyter notebooks
  • Setting up environment (shell and code window)
  • Use of ? and ?? for documentation
  • Use of %pylab

Array algebra

  • Numpy array broadcasting

Array algebra in practice

  • Example 1: the cross-matching
  • Code debugging: icecream
  • Code profiling: %timeit, yappi

Good coding practices

  • Example 2: the burst simulation
  • Module import
  • Array algebra
  • Placing the right bits at the right place
  • Plotting

Parallelising code

  • General concepts