-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assorted improvements for TiledDataset (#402)
* Add basic repr for TiledDataset Just uses ds[0, 0] for now for ease of putting something together. Closes #401 * Add tiles_shape property * Add changelog * Add method to slice all datasets * Add new TiledDataset fixture because the old one wasn't behaving itself * Add test for TiledDataset tile slicing * Add a basic test for TiledDataset.__repr__ Ripped off from the one for Dataset.__repr__ * Apparently ndcube 2.1.2 doesn't allow `Dataset.shape` * Test `tiles_shape` * Add external object for slicing TiledDataset tiles * Fix a thing * Minor tweak * Tweak * Update changelog --------- Co-authored-by: Stuart Mumford <[email protected]>
- Loading branch information
Showing
6 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Add various features for easier inspection of `TiledDataset`: | ||
- `__repr__` method to output basic dataset info; | ||
- `tiles_shape` property to access data array shape for each individual tile; | ||
- `slice_tiles()` method to apply the same slice to all datasets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters