Skip to content

Commit

Permalink
Return canonical SourceData object for legacy source names
Browse files Browse the repository at this point in the history
  • Loading branch information
philsmt committed Jun 16, 2024
1 parent 3b39372 commit 50fc57d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extra_data/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def _get_source_data(self, source):
f"Access via this name will be removed at a future data.",
DeprecationWarning,
stacklevel=3)
# The SourceData API replaces legacy sources by their target
# counterpart.
source = self.legacy_sources[source]

return self._sources_data[source]

Expand Down

0 comments on commit 50fc57d

Please sign in to comment.