Skip to content

CIP-000E Phase 0: fix state-space Cython relative import - #1302

Merged
lawrennd merged 1 commit into
mainfrom
cip000E-phase0-hygiene
Nov 16, 2026
Merged

lawrennd merged 1 commit into
mainfrom
cip000E-phase0-hygiene

Conversation

@lawrennd

Copy link
Copy Markdown
Member

Summary

  • Fix absolute import state_space_cython in state_space_main.py so the extension loads from the installed package tree (from . import state_space_cython).
  • Add a smoke test that cython_code_available is True when the extension is built.
  • This is CIP-000E Phase 0 hygiene only: it repairs the current Cython path; it does not remove or rewrite Cython.

Test plan

  • pytest GPy/testing/test_cython.py::test_state_space_cython_available_when_built (passes with built extension; cython_code_available True)
  • CI green on PR

Load state_space_cython via package-relative import so the extension is
available when GPy is installed, and add a smoke test for cython_code_available.
@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.22%. Comparing base (6f1f31b) to head (ddc1def).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1302      +/-   ##
==========================================
+ Coverage   62.16%   62.22%   +0.05%     
==========================================
  Files         206      206              
  Lines       21962    21962              
  Branches     2564     2564              
==========================================
+ Hits        13653    13665      +12     
+ Misses       7682     7675       -7     
+ Partials      627      622       -5     
Flag Coverage Δ
unittests 62.22% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lawrennd
lawrennd merged commit 7bd4338 into main Nov 16, 2026
19 checks passed
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