Skip to content

Commit

Permalink
Do not add bad alias twice in validate DSR
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianDAlessandro committed Nov 14, 2023
1 parent 6c6ef21 commit ae157cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datahub/dsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def validate_dsr_data(data: dict[str, NDArray | str]) -> None:
if array.shape != shape:
aliases.append(alias)
log.error(f"'{alias}' has shape {array.shape}, expected {shape}")
continue
if not np.issubdtype(array.dtype, np.number) and not np.issubdtype(
array.dtype, np.character
):
Expand Down

0 comments on commit ae157cb

Please sign in to comment.