Skip to content

Commit 2814d60

Browse files
committed
Disambiguate get_img_data between _imgutils.py and SpatialExperiment.py
1 parent fc795cc commit 2814d60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/spatialexperiment/_imgutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def read_image(input_image):
4242
raise TypeError(f"Expected PIL Image, path, or URL. Got {type(input_image)}")
4343

4444

45-
def get_img_data(
45+
def construct_img_data(
4646
img: Union[str, os.PathLike],
4747
scale_factor: str,
4848
sample_id: str,

src/spatialexperiment/io/tenx_visium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import biocutils as ut
1111
from singlecellexperiment import read_tenx_mtx
1212
from ..SpatialExperiment import SpatialExperiment
13-
from .._imgutils import get_img_data
13+
from .._imgutils import construct_img_data
1414
from .._initutils import construct_spatial_coords_from_names
1515

1616

@@ -122,7 +122,7 @@ def read_img_data(
122122
),
123123
None,
124124
)
125-
curr_image_data = get_img_data(
125+
curr_image_data = construct_img_data(
126126
img=image,
127127
scale_factor=scale_factor,
128128
sample_id=sample_id,

0 commit comments

Comments
 (0)