The Domain class has a shape method which returns the (y, x) tuple. The method is inherited by the Nansat object and widely used. The idea is to make a shape property instead of the method. It will be more consistent with the numpy then.
TODO
[x] Create a shape property in the Domain class by analogy with the existing shape method
[x] Create a deprication warning in the shape method
[x] Fix the mappers and all other code using the shape method
Idea
The
Domain
class has ashape
method which returns the (y, x) tuple. The method is inherited by theNansat
object and widely used. The idea is to make ashape
property instead of the method. It will be more consistent with thenumpy
then.TODO
[x] Create a
shape
property in theDomain
class by analogy with the existingshape
method[x] Create a deprication warning in the
shape
method[x] Fix the mappers and all other code using the
shape
method[x] Fix the tests