Skip to content

Fix failing tests#41

Open
Tejas7007 wants to merge 1 commit into
uwplasma:eg/analysisfrom
Tejas7007:fix/failing-tests
Open

Fix failing tests#41
Tejas7007 wants to merge 1 commit into
uwplasma:eg/analysisfrom
Tejas7007:fix/failing-tests

Conversation

@Tejas7007

Copy link
Copy Markdown

Fixes the failing CI tests so the build passes.

Most of the failures were stale test mocks that no longer matched the
refactored API. The code now nests coil quantities under field.coils
(field.coils.length, biot_savart.coils.currents, and so on), but the mocks
still used the old flat attributes. Updated them to match.

One failure was a real bug in BiotSavart_from_gamma: coils_length,
coils_curvature, r_axis, and z_axis are read-only properties, but init
was assigning to the public names, and the coils_length getter referenced
itself and recursed infinitely. I fixed this by using private backing attributes
(_coils_length, etc.), the same way _gamma_dash already works in that class.

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