Closed adl1995 closed 7 years ago
@cdeil I just made the updates.
@cdeil Okay, I made the changes. However, the test results vary from before. I'm not sure if these are the correct ones or if the previous ones were.
@cdeil Alright, just made the changes. Please check.
@adl1995 - FYI: I've done a small update to this code in 1b36234 The small advantage of having the test this way is that it's independent and faster.
Another thing I noticed was that I had to put bool
explicitly for is_tile_distorted
. Previously it was returning numpy.bool_
which has the very surprising behaviour:
>>> np.bool_(True) is True
False
As mentioned in issue #84, I have added two methods
to_split
and_measure_tile_shape
which are used for checking whether a tile needs to be split or not. The next step is to perform the actual splitting and modify the projection part to take in the correcttile_width
(half, in case a tile is split).