Skip to content

Reimplement tests - #72

Open
mdbartos wants to merge 33 commits into
masterfrom
organization
Open

mdbartos wants to merge 33 commits into
masterfrom
organization

Conversation

@mdbartos

Copy link
Copy Markdown
Owner

No description provided.

@stoiver

stoiver commented Oct 18, 2026

Copy link
Copy Markdown

Hi @mdbartos — I've been maintaining a downstream copy of pipedream (anuga-community/pipedream) for coupling with ANUGA, and wanted to share a few things that overlap with this PR.

pandas 3 / NumPy 2: the Python 3.11 job here fails with No matching definition for argument type(s) ... readonly array(bool, 1d, C). That's the pandas 3 Copy-on-Write issue in #74; #75 fixes it (copies the DataFrame-derived arrays that reach the eager numba kernels). #73 replaces the removed np.bool8 alias for NumPy 2. Both are small and independent of this PR.

Tests on master: test/test_pipedream.py on master fails at collection, so CI there can't pass. Layer by layer:

  1. SuperLink.configure_hydraulic_geometry uses .str/.index on _shape_ik/_shape_o, which became plain arrays in 8cf8f7c → AttributeError (fixed in Copy DataFrame-derived arrays so SuperLink works under pandas 3 (Copy-on-Write) #75).
  2. _setup_step passes _dt to superlink_{upstream,downstream}_head_coefficients, which the pure-Python SuperLink versions don't accept — their formulation predates nSuperLink's. I see this PR drops the SuperLink tests; is SuperLink still meant to be supported, or should it be deprecated in favour of nSuperLink?
  3. The water quality test: QualityBuilder takes dx_uk/dx_dk from the hydraulic model (default 0) and divides by them in numba_node_coeffs → ZeroDivisionError. The dx_uk/dx_dk columns in hillslope_superlink_wq_params.csv are no longer read. That may be why it's commented out here.
  4. Pump tests still use a_q/a_h rather than the EPANET a_p/b_p/c_p from 49e9d3b.

On our branch I've xfailed the SuperLink tests and repaired the rest, and CI passes on 3.9–3.11, in case any of it is useful: anuga-community@3045ef5

Separately, test_superlink_convergence here fails on 3.9/3.10 with a broadcast error in diagnostics.py:195 (shapes (5,) vs (25,)).

Happy to rebase #73/#75 onto this branch if that's easier for you. Thanks for pipedream!

This branch has not been deployed

No deployments
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.

2 participants