You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However (and this is a bit silly that I did not make it work -- but to my defense, I did not expect you to merge that PR), what you used as an example is broken at this point, because the result is not a valid index in an array:
>>>year=Axis('year', '2001..2010')
>>>year['2001:2004;2008;2009']
year[slice(2001, 2004, None), [2008, 2009]]
>>>arr=ndrange(year)
>>>arr.sum(year['2001:2004;2008,2009'])
TypeErrorTraceback (mostrecentcalllast)
...
TypeError: unhashabletype: 'slice'>>># this works though
... arr.sum(tuple(year['2001:2004;2008,2009']))
year|2001:2004|2008,2009|6|15
Activity
gdementen commentedon Sep 19, 2017
I think
should be equivalent to
while
should be equivalent to