Skip to content

Origin/dev/refactor code - #19

Merged
aeiwz merged 8 commits into
mainfrom
origin/dev/refactor-code
May 28, 2026
Merged

Origin/dev/refactor code#19
aeiwz merged 8 commits into
mainfrom
origin/dev/refactor-code

Conversation

@aeiwz

@aeiwz aeiwz commented May 28, 2026

Copy link
Copy Markdown
Owner

This pull request introduces several significant changes to the metbit package, focusing on a major reorganization of the codebase into sub-packages, improved API clarity, and new internal utilities for reporting and pairwise analysis. It also includes minor UI improvements in the documentation and the removal of unused or placeholder development scripts.

Major codebase reorganization and API improvements:

  • Refactored metbit/__init__.py to re-export public API from new sub-packages, updated the version to 9.0.0-dev, and made Dash app imports optional for environments without heavy dependencies. The __all__ list is updated to reflect the new structure.
  • Added metbit/_compat.py, providing backwards-compatible re-exports from new sub-package paths to ease migration for external users.

New internal utilities:

  • Added metbit/_internal/pairs.py with the lazypair class for generating all pairwise groupings and dataset splits, improving support for group-based analyses.
  • Added metbit/_internal/report.py with classes for generating OPLS-DA HTML reports (gen_page, gen_page_legacy) and managing report output paths (oplsda_path).

Documentation and UI improvements:

  • Updated the theme toggle buttons in ThemeToggle.tsx to explicitly set type="button" for accessibility and correctness. [1] [2] [3]
  • Replaced anchor tags with Next.js Link components in page.tsx for improved navigation and SPA behavior.

Cleanup and removals:

  • Removed the unused metbit/dev/auto_report.py and metbit/dev/batch_normalisation.py scripts. [1] [2]

aeiwz added 2 commits May 28, 2026 09:41
Add a comprehensive test suite and coverage output (coverage.json); update pytest.ini and include many new test files under tests/. Update docs components (docs/app/components/ThemeToggle.tsx and docs/app/page.tsx). Modify multiple metbit modules and include regenerated __pycache__ (.pyc) artifacts. Update .gitignore to ignore metbit/__pycache__.
Copilot AI review requested due to automatic review settings May 28, 2026 04:20
@aeiwz aeiwz added the enhancement New feature or request label May 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@aeiwz

aeiwz commented May 28, 2026

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Copilot AI review requested due to automatic review settings May 28, 2026 04:26
@aeiwz
aeiwz removed the request for review from Copilot May 28, 2026 04:26
Copilot AI review requested due to automatic review settings May 28, 2026 04:26
@aeiwz
aeiwz removed the request for review from Copilot May 28, 2026 04:26

Copilot AI commented May 28, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved. I merged origin/main into this branch and fixed all merge conflicts in commit 6818c8d (followed by 3f58d9a to remove an accidental artifact-only file change).

Copilot finished work on behalf of aeiwz May 28, 2026 04:27
Limit Draft PDF workflow triggers to paper-related files and PRs; update manuscript source (metbit_manuscript.md and paper.md) to expand affiliations, reorganize and flesh out sections (functionality, implementation, results, availability, funding), update date, and replace explicit AI-tool bylines with a generic AI usage disclosure. Remove AI-credit footers from figure-generation scripts and regenerate graphical assets (PNG files) and the .docx; add temporary .docx artifact. Overall cleanup of text, figures, and CI to reflect manuscript revisions and remove named AI assistant credits.
Copilot AI review requested due to automatic review settings May 28, 2026 05:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@aeiwz
aeiwz merged commit e479c24 into main May 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants