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
The text was updated successfully, but these errors were encountered:
I am not sure we should keep axis['a_string'] being interpreted, but if we do the title should work.
Salvaged from my comments in #145.
The text was updated successfully, but these errors were encountered: