labscript-suite / labscript

The 𝗹𝗮𝗯𝘀𝗰𝗿𝗶𝗽𝘁 library provides a translation from expressive Python code to low-level hardware instructions.
http://labscriptsuite.org
BSD 2-Clause "Simplified" License
9 stars 51 forks source link

Eliminate go_high, go_low syntax #37

Open philipstarkey opened 7 years ago

philipstarkey commented 7 years ago

Original report (archived issue) by Ian B. Spielman (Bitbucket: Ian Spielman, GitHub: ispielma).


For no apparent reason digital lines behave different from analog lines. For example I propose instead:

do_line.go_high(t) becomes: do_line.constant(t, 1) or do_line.constant(t, True)

this allows uniform syntax across analog and digital lines, and makes programming do lines with variables more natural. Realistically the go_high/low methods would remain, but be depreciated.