Skip to content

refactor(pycdfpp): use cpp_utils_python numpy/datetime helpers - #138

Merged
jeandet merged 3 commits into
SciQLop:mainfrom
jeandet:refactor/use-cpp-utils-python
Nov 6, 2026
Merged

jeandet merged 3 commits into
SciQLop:mainfrom
jeandet:refactor/use-cpp-utils-python

Conversation

@jeandet

@jeandet jeandet commented Nov 5, 2026

Copy link
Copy Markdown
Member

The generic numpy and datetime helpers moved from pycdfpp to cpp_utils (cpp_utils/cpp_utils_python/), so CEFast (SciQLop/CEFast) can share them.

  • fast_allocate_array (numpy array without zero-fill) now comes from cpp_utils.
  • datetime.datetime <-> time point conversions now come from cpp_utils; the CDF-typed parts (EPOCH, TT2000) stay in pycdfpp.
  • cpp_utils wrap pinned to 2fd4528.

No behaviour change: pycdfpp suite 55/55, same as main, built with cpp_utils fetched from the wrap.

🤖 Generated with Claude Code

jeandet and others added 3 commits November 5, 2026 21:01
Deletes the numpy no-zero-fill allocation and the generic datetime.datetime <-> time point
code that now live in cpp_utils_python, and forwards to them: fast_allocate_array keeps its
(shape, optional owner) signature, py_datetime and its caster are imported, to_datetime /
to_time_point replace the local _details::to_tp. No public API change; CDF-typed conversions
stay in pycdfpp.

Local check used subprojects/cpp_utils as a symlink to the cpp_utils feat/cpp-utils-python
worktree (git-ignored, not committed). The cpp_utils.wrap revision bump waits until that
branch is pushed.

Co-Authored-By: OpenCode <noreply@opencode.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested: pycdfpp suite 55/55 against this revision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.25%. Comparing base (3fcc975) to head (8eeef6d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #138      +/-   ##
==========================================
+ Coverage   96.24%   96.25%   +0.01%     
==========================================
  Files          94       94              
  Lines        9208     9184      -24     
==========================================
- Hits         8862     8840      -22     
+ Misses        346      344       -2     
Flag Coverage Δ
unittests 96.25% <100.00%> (+0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeandet
jeandet merged commit a52d227 into SciQLop:main Nov 6, 2026
66 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