Skip to content

Commit 1b0fc60

Browse files
committed
Fixed test, removed soon-to-be-deprecated tests
1 parent e31a187 commit 1b0fc60

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11-
## [0.0.5] -tbd
11+
## [0.1.0] - tbd
1212

1313
### Added
1414

@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning][].
1717
### Fixed
1818

1919
- Legend order is now deterministic (#143)
20+
- Images no longer normalised by default (#150)
21+
2022

2123
## [0.0.4] - 2023-08-11
2224

tests/pl/test_get_extent.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,3 @@ def test_plot_extent_of_img_is_correct_after_spatial_query(self, sdata_blobs: Sp
4242
axes=["x", "y"], min_coordinate=[100, 100], max_coordinate=[400, 400], target_coordinate_system="global"
4343
)
4444
cropped_blobs.pl.render_images().pl.show()
45-
46-
def test_plot_extent_of_polygons_is_correct_after_spatial_query(self, sdata_blobs: SpatialData):
47-
cropped_blobs = sdata_blobs.pp.get_elements(["blobs_polygons"]).query.bounding_box(
48-
axes=["x", "y"], min_coordinate=[100, 100], max_coordinate=[400, 400], target_coordinate_system="global"
49-
)
50-
cropped_blobs.pl.render_shapes().pl.show()
51-
52-
def test_plot_extent_of_polygons_on_img_is_correct_after_spatial_query(self, sdata_blobs: SpatialData):
53-
cropped_blobs = sdata_blobs.pp.get_elements(["blobs_image", "blobs_polygons"]).query.bounding_box(
54-
axes=["x", "y"], min_coordinate=[100, 100], max_coordinate=[400, 400], target_coordinate_system="global"
55-
)
56-
cropped_blobs.pl.render_images().pl.render_shapes().pl.show()

tests/pl/test_render_shapes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _make_multi():
8585
sdata = SpatialData(shapes={"p": _make_multi()})
8686
adata = anndata.AnnData(pd.DataFrame({"p": ["hole", "overlap", "square", "circle"]}))
8787
adata.obs.loc[:, "region"] = "p"
88-
adata.obs.loc[:, "val"] = [1, 2, 3, 4]
88+
adata.obs.loc[:, "val"] = [0, 1, 2, 3]
8989
table = TableModel.parse(adata, region="p", region_key="region", instance_key="val")
9090
sdata.table = table
9191
sdata.pl.render_shapes(color="val", outline=True, fill_alpha=0.3).pl.show()

0 commit comments

Comments
 (0)