Skip to content

Meta Issue: Extensible Cosmology #11777

Closed

Description

@nstarman

(Migrated from #10673, which I closed)

  1. upgrade default_cosmology to be a registry (a la galactocentric_frame_defaults) so users can add their own cosmology realizations and set them as the default.

4.1 Add entrypoints to the realizations, so that third-party packages can add specific cosmology realizations and users can access them straight through astropy.

4.2 Also allow auto-import of user-defined realizations from a file(s).

  1. Enhance the Cosmology class so it initializes the default cosmology, with any user-passed modifications. This centralizes the cosmology creation process for any "perturbations" about the default cosmology. Finally a use for the base class.

  2. [Not in this PR] Add entrypoints to core, where the Cosmology classes are defined, so that third-party packages can add cosmologies and have them integrate well with the realizations machinery.

At the end, astropy will provide a core set of cosmology classes and realizations, but be highly extensible to allow user-defined realizations, and aggregate third-party cosmologies and realizations.

These PRs might also might partially alleviate the lack-of-maintainer problem. Instead of programming more Cosmology classes, we let third-party packages demonstrate user need. If a Cosmology class becomes stable & popular enough then it could be added as a built-in.

Activity

  1. nstarman commented on Jul 14, 2021

    @nstarman
    MemberAuthor

    Closing this meta issue in favor of the project board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions