ni / ni/nimi-python

reset_device is functional in niswitch 1.4.9 despite docstring statement

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

Nobody has claimed this yet.

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

Description

Description of issue

The docstring for niswitch.Session() says that reset_device is not currently supported. I find that at least for the PXI-2503, reset_device=True is functional opening any relays previously closed.

Help on class Session in module niswitch.session:

class Session(_SessionBase)
| Session(resource_name, topology='Configured Topology', simulate=False, reset_device=False, *, grpc_options=None)
| | reset_device (bool): Specifies whether to reset the switch module during the initialization
| process. Valid Values: True - Reset Device (Default Value) False
| - Currently unsupported. The device will not reset.
|

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.

Research direction

Start in the niswitch.session module at the Session class and inspect the reset_device parameter docstring. Confirm the documented behavior against the issue's PXI-2503 observation, then update the documentation so it accurately describes reset_device support and verify the generated or source docstring.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.