Feature: Add MockHandler for hardware-less simulation

Open
#273 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by locating the ScienceLab initialization path and the existing device-I/O handling. Define how mock=True selects MockHandler without requiring a physical PSLab device, then verify that tests and feature development can run hardware-free; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

Problem
Currently, ScienceLab requires a physical PSLab device to initialize. This makes it difficult to run tests or develop features without hardware.

Proposed Solution
Implement a MockHandler class and a mock=True argument in ScienceLab to simulate device I/O.

Dominant language
Python
Stars
1.6k
Forks
242
PR merge metrics
No merged PRs in 30d

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 fossasia/pslab-python

All issues in fossasia/pslab-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.