Skip to content

Commit cfa0d3e

Browse files
committed
Fix csr_sample_values import
This import path was removed in scipy 1.16. We need to figure out if there is another public import path we can use. Signed-off-by: Patrick Avery <[email protected]>
1 parent 3226d35 commit cfa0d3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hexrd/imageseries/load/framecache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
import numpy as np
99
import yaml
1010
from scipy.sparse import csr_matrix
11-
from scipy.sparse.compressed import csr_sample_values
11+
12+
# FIXME: figure out if there is a public way to import this function
13+
from scipy.sparse._compressed import csr_sample_values
1214

1315
from . import ImageSeriesAdapter, RegionType
1416
from ..imageseriesiter import ImageSeriesIterator

0 commit comments

Comments
 (0)