Skip to content

Skip HardConcrete tests when l0-python is not installed#2

Open
MaxGhenis wants to merge 7 commits intomainfrom
fix/skip-l0-tests
Open

Skip HardConcrete tests when l0-python is not installed#2
MaxGhenis wants to merge 7 commits intomainfrom
fix/skip-l0-tests

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Mark 3 HardConcreteCalibrator tests in test_sparse_calibration_comparison.py with pytest.mark.skipif so they skip gracefully when l0-python is not installed, instead of failing with ImportError
  • Uncomment l0-python>=0.4 in pyproject.toml [l0] extras so it can be properly installed via pip install microplex[l0]
  • Follows the same pattern already used in test_reweighting_benchmark.py

Test plan

  • 669 passed, 0 failed, 10 skipped (3 l0 tests now skip instead of fail)
  • Full test suite passes with no regressions

🤖 Generated with Claude Code

MaxGhenis and others added 7 commits February 8, 2026 10:21
…lti-seed benchmarks

- Fix PyTorch seed determinism in benchmark runner and DataLoaders
- Add multi-seed evaluation (run_multi_seed with mean +/- SE)
- Fix CI mypy path typo (src/micro/ -> src/microplex/)
- Add Python 3.13 to CI matrix and classifiers
- Add pydantic to core dependencies
- Upload benchmark dataset to HuggingFace (nikhil-woodruff/microplex-benchmark-data)
- Update build_data.py with correct HuggingFace repo ID
- Re-run benchmarks with deterministic seeds
- Code simplification: extract shared helpers, remove unused code, consolidate duplication

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add census2023sipp, psid2023, mullahy1986specification bib entries
- Remove xu2019tvae duplicate (merged into xu2019modeling)
- Fix tutorial import: micro -> microplex
- Update README: accurate feature table, method list, citation year

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The l0-python optional dependency may not be available in all
environments. Mark the 3 HardConcreteCalibrator tests with skipif
so they skip gracefully instead of failing with ImportError.

Also uncomment l0-python in pyproject.toml [l0] extras so it can
be installed via `pip install microplex[l0]`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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