Skip to content

Instantly share code, notes, and snippets.

@chipolux
Created March 18, 2015 21:13
Show Gist options
  • Save chipolux/9d656180b6141175a3e3 to your computer and use it in GitHub Desktop.
Save chipolux/9d656180b6141175a3e3 to your computer and use it in GitHub Desktop.
Efficient List Creation
INSTRUMENTS = filter(lambda x: x, map(str.strip, """
Flow %d (bpd)
Target Flow (bpd)
Intake (psi)
Discharge (psi)
Pressure (psi, ft)
Torque %d (ft lbf)
Power (hp)
Speed (rpm)
Temperature (F)
""".split("\n")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment