Skip to content

Add missing exports to scales __init__.py#968

Merged
BioCam merged 4 commits intoPyLabRobot:mainfrom
BioCam:update/scale-init-exports
Mar 26, 2026
Merged

Add missing exports to scales __init__.py#968
BioCam merged 4 commits intoPyLabRobot:mainfrom
BioCam:update/scale-init-exports

Conversation

@BioCam
Copy link
Copy Markdown
Collaborator

@BioCam BioCam commented Mar 26, 2026

Summary

  • The scales module only exported the deprecated MettlerToledoWXS205SDU (which raises RuntimeError on instantiation) and Scale
  • MettlerToledoWXS205SDUBackend, ScaleBackend, and ScaleChatterboxBackend were not importable from pylabrobot.scales
  • Now all usable classes are accessible via the top-level package import

Test plan

  • from pylabrobot.scales import MettlerToledoWXS205SDUBackend works
  • from pylabrobot.scales import ScaleBackend works
  • from pylabrobot.scales import ScaleChatterboxBackend works
  • Existing from pylabrobot.scales import Scale still works
  • Deprecated MettlerToledoWXS205SDU still importable (backwards compat)

🤖 Generated with Claude Code

BioCam and others added 4 commits March 26, 2026 17:20
The scales module only exported the deprecated MettlerToledoWXS205SDU
class (which raises RuntimeError on instantiation) and Scale. The actual
usable classes were not importable from the top-level package.

Now exports: MettlerToledoWXS205SDUBackend, ScaleBackend,
ScaleChatterboxBackend alongside the existing Scale and deprecated alias.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@BioCam BioCam merged commit 76491b8 into PyLabRobot:main Mar 26, 2026
21 checks passed
@BioCam BioCam deleted the update/scale-init-exports branch March 26, 2026 17:53
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.

1 participant