Skip to content

Conversation

@adrn
Copy link
Collaborator

@adrn adrn commented Aug 11, 2025

This adds a new potential class to represent a spherical Gaussian density profile.

cc @mlucey

@adrn adrn added this to the v0.1 milestone Aug 11, 2025
@adrn adrn requested a review from nstarman August 11, 2025 19:21
Copy link
Collaborator

@jnibauer jnibauer left a comment

Choose a reason for hiding this comment

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

looks good!


_: KW_ONLY
units: u.AbstractUnitSystem = eqx.field(converter=u.unitsystem, static=True)
constants: ImmutableMap[str, u.AbstractQuantity] = eqx.field(
Copy link
Contributor

Choose a reason for hiding this comment

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

We should define a Constants type alias.

default=default_constants, converter=ImmutableMap
)

@ft.partial(jax.jit)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be in-lined? Or maybe the function it calls?

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.

3 participants