Incorrect documentation for the channel_name parameter of niFgen.Session

Open
#2,024 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
documentation

Research direction

Start with the niFgen.Session documentation entries for the channel_name parameter and compare the two stated defaults with the documented or implemented API behavior. Done means the conflicting entries are reconciled and the documentation clearly describes the correct default and its channel-selection semantics.

Written by the indexing model from the issue text.

Description

docs nifgen
Description of issue

In the documentation for niFgen.Session the parameter channel_name is listed as having a default value of 'None':
image

Further down in the documentation, channel_name is listed as having a default value of '0':
image

My understanding is that these are two different things -- on a two-channel device, a default value of '0' would indicate a session contained only channel 0, whereas a value of None would indicate it contained all channels (same as leaving the terminal unwired or wired to a blank string in LabVIEW).

Dominant language
Python
Stars
128
Forks
110
Avg merge
5d 14h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ni/nimi-python

All issues in ni/nimi-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.