Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of IsoTech milliK resource class #11

Merged
merged 10 commits into from
Apr 12, 2024
Merged

Conversation

rebeccahawke
Copy link
Contributor

The IsoTech milliK resource class can be used to read resistance values from a milliK and any number of connected millisKanner devices. The class supports measurement of PRTs and/or thermistors. Voltage measurement (e.g. for thermocouples) will need a subsequent update.

docstrings now use reStructured Text.
set rstrip to True.
added TYPE_CHECKING for all class methods.
separated configure and read commands to allow different configurations for each channel.
multiple readings may be taken by read_channel (in which case the method returns a list of floats instead of a single float).
changed close_connection to instead modify the inherited disconnect method
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/examples/equipment/isotech/millik.py Show resolved Hide resolved
msl/examples/equipment/isotech/millik.py Outdated Show resolved Hide resolved
docstrings improved for clarity and typographical, syntax and build errors fixed; simplified list iteration in example; unnecessary statements removed
and allowed each channel to be configured and read independently
read requires sending configuration of sense parameters immediately before or together with the read command. This fix somehow fixed the strange double read too.

Also added a second example for a milliK connected by ethernet.
 channels and readings are returned as separate lists
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
msl/equipment/resources/isotech/millik.py Outdated Show resolved Hide resolved
and created local variable for channels to ensure consistency of ordering
Copy link
Contributor

@jborbely jborbely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be the last thing that I'll suggest before merging.

unless False in which case it uses root2*1 mA to determine self-heating effects.
Thermistors always use 2 μA.
:param fourwire: The wiring arrangement eg 3 or 4 wire.
:return: Returns the internal values set for range, current, and wiring.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method now returns None so the :return: line should be deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, well spotted!

@jborbely jborbely merged commit 62a8d2e into MSLNZ:main Apr 12, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants