Skip to content

Clean duplicates off sites.json #126

@pllim

Description

@pllim

From @eerovaher (https://github.com/astropy/astropy/pull/12721/files#r786773846)

Raising warnings about duplicated names sounds like a good idea, but it should not be implemented until the sites.json file in astropy-data is cleaned from duplicates, otherwise the users would receive many warnings that they can't really do anything about. Removing the duplicates from sites.json would reduce the number of usable keys for anyone not using the bleeding edge version of astropy, so it doesn't seem it would be a good idea to do that quite yet.

When it comes to checking for duplicated names for different sites then it wouldn't be too difficult to add a test to astropy-data that would check for that. The output of astropy.coordinates.EarthLocation.get_site_names() shows that currently there aren't any duplicated labels across sites other than the empty string that this pull request takes care of.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions