PyDAQmx icon indicating copy to clipboard operation
PyDAQmx copied to clipboard

pep8-ify function names

Open eric-wieser opened this issue 7 years ago • 5 comments

Following on from this comment.

So instead of

task.CfgSampClkTiming(
    source=None,
    rate=1,
    activeEdge=daq.Val_Rising,
    sampleMode=daq.Val_FiniteSamps,
    sampsPerChan=1
)

it would become

task.cfg_sample_clk_timing(
    source=None,
    rate=1,
    active_edge=PyDAQmx.VAL_RISING,
    sample_mode=PyDAQmx.VAL_FINITE_SAMPS,
    samps_per_chan=1
)

This potentially raises the issue that the module name should be PEP8'd as well, becoming the much easier to type pydaqmx

eric-wieser avatar Jul 20 '16 23:07 eric-wieser