Skip to content

Migrate base interfaces to statistical_comparison_core and statistical_comparison_helpers - #2

Open
HarukiNishimura-TRI wants to merge 3 commits into
dasnyder5:mainfrom
HarukiNishimura-TRI:dependency_cleanup
Open

Migrate base interfaces to statistical_comparison_core and statistical_comparison_helpers#2
HarukiNishimura-TRI wants to merge 3 commits into
dasnyder5:mainfrom
HarukiNishimura-TRI:dependency_cleanup

Conversation

@HarukiNishimura-TRI

Copy link
Copy Markdown
Collaborator

Migrate base interfaces to statistical_comparison_core and statistical_comparison_helpers

  • Base hypothesis testing enums/classes are imported from the new statistical_comparison_core instead of sequentialized_barnard_tests
  • Remove redundante plotting and CLD code from this package; they are migrated to statistical_comparison_helpers
  • Add statistical-comparison-core and statistical-comparison-helpers as new dependencies. Also add cvxpy.
  • Update setup.py
  • Update tools/plotting.py deprecation shims

This closes #1

…l_comparison_helpers

- Base hypothesis testing enums/classes are imported from the new statistical_comparison_core instead of sequentialized_barnard_tests
- Remove redundante plotting and CLD code from this package; they are migrated to statistical_comparison_helpers
- Add statistical-comparison-core and statistical-comparison-helpers as new dependencies. Also add cvxpy.
- Update setup.py
- Update tools/plotting.py deprecation shims

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.

Pull request overview

This PR migrates nscore’s core hypothesis-testing interfaces and plotting/CLD utilities to the external statistical_comparison_core and statistical_comparison_helpers packages, keeping backward compatibility via deprecation shims while updating packaging metadata and tests accordingly.

Changes:

  • Replace imports of base testing types (e.g., Decision, Hypothesis, mixins/base classes) to come from statistical_comparison_core.
  • Convert plotting/CLD helpers in nscore.tools.plotting into deprecation shims delegating to statistical_comparison_helpers, and add focused tests for those shims.
  • Update packaging (setup.py) dependencies and add a project .gitignore.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tests/test_nscore_deprecation_shims.py Adds tests validating deprecation warnings and behavior parity for plotting/CLD shims.
tests/methods/test_continuous_nsm.py Updates test imports to use statistical_comparison_core types.
tests/methods/test_binary_nsm.py Updates test imports to use statistical_comparison_core types.
setup.py Updates runtime dependencies to include the new core/helper packages (and cvxpy) and simplifies setup config.
nscore/wsr.py Switches base interface imports to statistical_comparison_core and updates docstring.
nscore/utils/utils_wsr.py Updates module docstring to reflect nscore namespace.
nscore/tools/plotting.py Replaces local implementations with deprecation shims delegating to statistical_comparison_helpers.
nscore/savi.py Switches base interface imports to statistical_comparison_core.
nscore/nsm.py Switches base interface imports to statistical_comparison_core.
nscore/nonparametric_nsm.py Switches base interface imports to statistical_comparison_core.
nscore/batch.py Removes sequentialized_barnard_tests dependency usage and switches base interface imports to statistical_comparison_core.
.gitignore Adds common Python build/test artifacts to gitignore.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread setup.py Outdated
Comment thread nscore/tools/plotting.py Outdated
Comment thread tests/test_nscore_deprecation_shims.py Outdated
Comment thread tests/test_nscore_deprecation_shims.py Outdated
Comment thread tests/test_nscore_deprecation_shims.py Outdated
HarukiNishimura-TRI and others added 2 commits July 2, 2026 18:46
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@HarukiNishimura-TRI
HarukiNishimura-TRI requested review from dasnyder5 and removed request for das-penn July 3, 2026 02:06
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.

Migrate shared statistical test interfaces and plotting tools to separate packages.

2 participants