sunpy / ndcube

A base package for multi-dimensional contiguous and non-contiguous coordinate-aware arrays. "Maintainers": @danryanirish & @Cadair
http://docs.sunpy.org/projects/ndcube/
BSD 2-Clause "Simplified" License
44 stars 45 forks source link

NDCollection allows you to set keys as int or float and then gets upset when you slice #736

Open Cadair opened 1 week ago

Cadair commented 1 week ago

If you create a NDCollection object with integers or floats as the keys for the collection __getitem__ then interprets these numbers as you wanting to slice the aligned axes of the cube. We should disallow numeric keys for the collection.