Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Inconsistent naming of Normal and Gaussian for priors #58

@ThibeauWouters

Description

@ThibeauWouters

In src/jimgw/core/prior.py, we have a StandardNormalDistribution prior and a GaussianPrior. They are a bit inconsistent: they subclass different priors and there is no relation between them. We should make sure both names are supported, and that the standard Gaussian prior is a specific instance of the Gaussian prior, with mu=0 and sigma=1, to avoid redundancy.

Also, for user-friendliness, we should make sure both names are supported, similar to bilby, i.e. something like

class Normal(Gaussian):
    """A synonym for the  Gaussian distribution. """

but then adapting the names and classes for Jim.

(Note for devs: this is a very small issue to test out the automated Claude workflow).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions