Skip to content

Commit b6444a4

Browse files
committed
deprecation warning of 'TCFile' function
1 parent 1ddd24a commit b6444a4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

TCFile/TCFile_class.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
import hdf5plugin
77
import re
88
import dask.array as da
9+
import warnings
910

1011
def TCFile(tcfname:str, imgtype, channel=0):
12+
warnings.warn(
13+
"TCFile function is deprecated and will be removed by the end of 2026. "
14+
"Please use TCFZarrStore from TCFile.zarr_store instead for a more flexible "
15+
"and standards-compliant zarr interface. "
16+
"Example: from TCFile.zarr_store import TCFZarrStore; store = TCFZarrStore('file.TCF')",
17+
DeprecationWarning,
18+
stacklevel=2
19+
)
1120
if imgtype == '3D':
1221
return TCFileRI3D(tcfname)
1322
if imgtype == '2DMIP':

0 commit comments

Comments
 (0)