~/talk

Writing self-documenting scientific code using physical quantities

Talkat PyCon Canada 2012 · 2012-11-09..11-11· [python, data-science]
links:none on file
slides:none on file

Argues that code should carry physical units and shows a working workflow using the Python quantities (pq) package with numpy integration to keep magnitudes paired with units, perform dimensional analysis, and call rescale to convert results. Reproduces a momentum example (hockey puck plus rubber octopus) and fixes a miles per hour → m/s bug, cites Gimli Glider and Mars Climate Orbiter unit failures, demonstrates defining custom units (milk_bags = 4/3 L), applies units to spike‑raster neuroscience code, and publishes an IPython notebook at tibicoli pycon ca 2012.

AI-written summary · about

  1. 0:00Importance of units
  2. 1:09Real-world unit failures
  3. 2:15Manual vs package handling
  4. 4:28Introduction to quantities
  5. 6:30Advanced features
  6. 8:53Research application
  7. 13:39Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.