Skip to content

feat: thermistor assembly and implant#1866

Merged
dbirman merged 20 commits into
devfrom
1585-thermistor-device-and-implant
Jul 9, 2026
Merged

feat: thermistor assembly and implant#1866
dbirman merged 20 commits into
devfrom
1585-thermistor-device-and-implant

Conversation

@dbirman

@dbirman dbirman commented Jun 30, 2026

Copy link
Copy Markdown
Member

Adds a new DeviceImplant to support thermistor wire implants, and adds an example showing how to use it. Molex is not an available manufacturer, we'll have to add it separately (we can do that before merging, if we want).

@dbirman dbirman linked an issue Jun 30, 2026 that may be closed by this pull request
3 tasks
@dbirman
dbirman requested a review from saskiad June 30, 2026 16:58
Comment thread examples/thermistor_procedures.py Outdated
Comment thread examples/thermistor_procedures.py Outdated
Comment thread src/aind_data_schema/components/devices.py Outdated
class DeviceImplant(ProtocolMixin, DevicePosition, DataModel):
"""Description of a generic device implant procedure"""

implanted_device: str = Field(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

won't we always need the implanted_device to take a Device object? So a generic device should take Device rather than be a string.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And then is it possible to make it a discriminated list that can be Device or ThermistorAssembly and if we have other implanted devices that can't just be a device we could add them in the future?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There's some reason that I made it a str... but now I don't remember what it was. I simplified to just DeviceImplant with implanted_device: Device. Hopefully that doesn't break anything

@saskiad saskiad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

first, I don't think we need the connector for the assembly. But I'm willing to be persuaded.
second, I think we can just use the generic DeviceImplant with a discriminated list

@dbirman
dbirman requested a review from saskiad July 8, 2026 04:36
Comment thread examples/thermistor_procedures.py Outdated
Comment thread examples/thermistor_procedures.py Outdated

@saskiad saskiad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is good. I still feel like ProbeConfig and DevicePosition are so similar that there could be a way to combine them, but I think it's not obvious...

Just clean up the stuff in the example so people don't copy that.

@dbirman
dbirman enabled auto-merge July 9, 2026 20:41
@dbirman
dbirman added this pull request to the merge queue Jul 9, 2026
Merged via the queue into dev with commit 9c2d0b4 Jul 9, 2026
7 checks passed
@dbirman
dbirman deleted the 1585-thermistor-device-and-implant branch July 9, 2026 20:45
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.

Thermistor Device and Implant

2 participants