Skip to content

[ENH]: Implement a NaN policy for onthefly.read_transform#429

Merged
synchon merged 5 commits intomainfrom
enh/read_transform_nan
Jul 22, 2025
Merged

[ENH]: Implement a NaN policy for onthefly.read_transform#429
synchon merged 5 commits intomainfrom
enh/read_transform_nan

Conversation

@fraimondo
Copy link
Copy Markdown
Contributor

@fraimondo fraimondo commented Feb 24, 2025

  • description of feature/fix
  • tests added/passed
  • add an entry for the latest changes

This PR implements a policy to handle NaN values before calling the respective transformation function in read_transform.

Current options are:

  • bypass: do nothing, pass NaNs.
  • drop_element: skip elements with at least one NaN value
  • drop_rows: skip rows with at least one NaN value
  • drop_symmetric: skip rows and columns symmetrically, keeping the matrix squared.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.30%. Comparing base (d3fe3e6) to head (93205f3).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #429      +/-   ##
==========================================
+ Coverage   91.26%   91.30%   +0.03%     
==========================================
  Files         135      135              
  Lines        5566     5588      +22     
  Branches      905      910       +5     
==========================================
+ Hits         5080     5102      +22     
  Misses        313      313              
  Partials      173      173              
Flag Coverage Δ
junifer 91.30% <100.00%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
junifer/onthefly/read_transform.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 24, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-07-22 11:45 UTC

@synchon synchon force-pushed the enh/read_transform_nan branch from ea37687 to 310ea9d Compare July 18, 2025 09:30
@synchon synchon force-pushed the enh/read_transform_nan branch from 310ea9d to a39f64c Compare July 22, 2025 08:42
@synchon synchon changed the title [ENH] Implement a NaN policy for onthefly read_transform [ENH]: Implement a NaN policy for onthefly.read_transform Jul 22, 2025
@synchon synchon added the enhancement New feature or request label Jul 22, 2025
@synchon synchon added this to the 0.0.7 (alpha 6) milestone Jul 22, 2025
@synchon synchon merged commit ee99ec6 into main Jul 22, 2025
12 checks passed
@synchon synchon deleted the enh/read_transform_nan branch July 22, 2025 11:05
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.

2 participants