Skip to content

Conversation

@hongquanli
Copy link
Collaborator

Summary

  • Allow direct Git references in optional dependencies
  • Add tool.hatch.metadata.allow-direct-references = true to pyproject.toml

Problem

CI failed in PR #14 with:

ValueError: Dependency #1 of option `flatfield` cannot be a direct reference 
unless field `tool.hatch.metadata.allow-direct-references` is set to `true`

Test plan

  • CI passes with pip install -e ".[dev]"

🤖 Generated with Claude Code

hongquanli and others added 2 commits January 4, 2026 16:33
- Add [flatfield] optional dependency group
- Install basicpy from QI2lab/BaSiCPy GitHub repo
- Include matplotlib for flatfield visualization
- Update [all] to include flatfield

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allow direct Git references in optional dependencies by setting
tool.hatch.metadata.allow-direct-references = true

Fixes CI failure in PR #14

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@hongquanli hongquanli merged commit a15dbad into main Jan 5, 2026
5 checks passed
hongquanli added a commit that referenced this pull request Jan 5, 2026
- Fix #1 & #6: Convert to float32 before arithmetic to avoid uint underflow
- Fix #7: Clear flatfield/darkfield to None on load failure
- Fix #8: Support 2D arrays (Y, X) by auto-converting to 3D (1, Y, X)
- Fix #15: Only uncheck flatfield checkbox if no auto-load found

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <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.

2 participants