Skip to content

New version of numpy causing issues with scalars and id arrays#29

Merged
avdudchenko merged 5 commits into
watertap-org:mainfrom
sufikaur:watertap-issue-1728
Jan 30, 2026
Merged

New version of numpy causing issues with scalars and id arrays#29
avdudchenko merged 5 commits into
watertap-org:mainfrom
sufikaur:watertap-issue-1728

Conversation

@sufikaur

@sufikaur sufikaur commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

the line num_total_samples = int(np.ceil(scale_factor * n_samples_remaining)) causes an error in WaterTAP:

FAILED tutorials/parameter_sweep_demo.ipynb::parameter_sweep_demo.ipynb - TypeError: only 0-dimensional arrays can be converted to Python scalars

this is fixed if the item is pulled from (scale_factor * n_samples_remaining) before casting to an np.ceil is applied.

avdudchenko
avdudchenko previously approved these changes Jan 30, 2026

@avdudchenko avdudchenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@codecov

codecov Bot commented Jan 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.36%. Comparing base (b0c9dba) to head (34d1695).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files          38       38           
  Lines        3726     3726           
=======================================
  Hits         3516     3516           
  Misses        210      210           

☔ View full report in Codecov by Sentry.
📢 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.

@avdudchenko avdudchenko self-requested a review January 30, 2026 22:36

@avdudchenko avdudchenko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - for note, we disabled MPI tests in Linux due to GH runner failure to install pympi - should revisit this in a different PR

@avdudchenko avdudchenko merged commit 54e62c4 into watertap-org:main Jan 30, 2026
18 checks passed
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority:Normal Normal Priority Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants