geodesic_acceleration is documented as (metric, coords) but requires (Christoffel array, velocity), so documented calls return unevaluated

Open Beginner friendly
#295 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, rust
Domain
backend

Research direction

Trace the geodesic_acceleration binding and kernel argument handling, using the documented schwarzschild_metric call and the working Christoffel-array example as reproductions. Locate the relevant Python binding and Rust computation entry points, then either compute Christoffel symbols internally from (metric, coords) or update the public docstring and parameter names to match (christoffel, velocity). Add or update a test showing the documented call evaluates without an error.

Written by the indexing model from the issue text.

Description

area/geometry good first issue help wanted kind/doc-mismatch severity/4-minor

geodesic_acceleration is documented as taking (metric, coords), but the kernel requires (Christoffel array, velocity) — so every documented call is silently returned unevaluated.

import rssn
s = rssn.Session()

a = s.compute("geodesic_acceleration(schwarzschild_metric(1, list(t,r,theta,phi)), "
              "list(t,r,theta,phi))")
a.text      # the call, returned verbatim
a.reduced   # False
a.error     # None
a.diagnostic_codes  # ('mismatch', 'non_dimensionless')   <- incidental, not the real problem

The docstring says:

geodesic_acceleration(metric, coords): geodesic equation acceleration vector -Gamma^mu_{alpha beta} u^alpha u^beta for metric and coords

The kernel actually reads args[0] as a 3-deep Christoffel array Gamma[mu][alpha][beta] and args[1] as the velocity vector u:

s.compute("geodesic_acceleration(list(list(list(0,0),list(0,1)), list(list(0,0),list(0,0))), "
          "list(2,3))").text
# 'list(-9, 0)'      = -Gamma^0_{11} u^1 u^1   <- works

So the function is usable, but only by passing a different pair of arguments than the documentation describes — and the documented call fails silently, with .error is None, so nothing points at the argument mismatch. The two diagnostic_codes that do appear (mismatch, non_dimensionless) come from the dimension layer and do not say "this is not a metric".

Expected: either accept (metric, coords) and compute the Christoffel symbols internally (which is what the signature promises, and what a caller cannot easily do themselves), or update the docstring and parameter names to (christoffel, velocity).

rssn 0.3.0, Python binding, Windows x86_64.

Dominant language
Rust
Stars
36
Forks
3
Avg merge
18h 51m
Merged PRs (30d)
18

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Apich-Organization/rssn

All issues in Apich-Organization/rssn

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.