CDAT / cdutil

Climate Utilities for CDAT
3 stars 2 forks source link

var.squeeze() truncates axis information #2

Open chaosphere2112 opened 7 years ago

chaosphere2112 commented 7 years ago

I don't think the behavior below is what a user expects - certainly not me:

so: (1, 27, 180, 360)
['time', 'LEVEL', 'LATITUDE', 'LONGITUDE']
so.squeeze()
so: (27, 180, 360)
['axis_0', 'axis_1', 'axis_2']

Migrated from: https://github.com/UV-CDAT/uvcdat/issues/1738

durack1 commented 7 years ago

@chaosphere2112 @doutriaux1 @dnadeau4 here too

doutriaux1 commented 6 years ago

@dnadeau4 had to revert PR, let's take a look later.

github-actions[bot] commented 4 years ago

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.

durack1 commented 4 years ago

@jasonb5 another usability tweak here - squeeze shouldn't lose transientVar attributes by default

github-actions[bot] commented 4 years ago

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.