Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Extra _index being added to dims #372

@jacobbieker

Description

@jacobbieker

Describe the bug
make_dim_index appends _index to the coordinates of a data array. This is called in multiple places, including convert_data_array_to_dataset and in create_batch for a DataSource. This results in coordinates with names such as x_index_index and data variables of x_index as well as the original x.

To Reproduce
Steps to reproduce the behavior:

  1. Run the test_get_batch_2km in Topographioc data source tests and print out the resulting Batch to confirm. Same with the MetaDataDataSource.

Expected behavior
There is only 1 index coordinate.

Additional context
Found this debugging MetadataDataSource in #314 and verified it also happens to the TopographicDataSource.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions