Skip to content

Document JAX dynamic-shape limitations in telescope helpers - #242

Open
Voyagerroc-Lab wants to merge 1 commit into
AstroAI-Lab:mainfrom
Voyagerroc-Lab:docs/jax-dynamic-shape-limitations
Open

Voyagerroc-Lab wants to merge 1 commit into
AstroAI-Lab:mainfrom
Voyagerroc-Lab:docs/jax-dynamic-shape-limitations

Conversation

@Voyagerroc-Lab

Copy link
Copy Markdown

Addresses #155 with API-level guidance for the telescope helpers that construct arrays using jnp.arange. The output shapes depend on traced values, so the docstrings now direct users to compute these sequences/edges outside jax.jit and other transformations when those inputs are dynamic. The same constraint applies to spatial bin edge generation.\n\nValidation: Ruff check/format and Python compile checks pass. The telescope tests and repository pre-commit hooks could not run locally because JAX and pre-commit are not installed.

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