[feature] : Convert img_path
to Path
object when loading .topostats
files
#106
Labels
img_path
to Path
object when loading .topostats
files
#106
Is your feature request related to a problem?
In TopoStats #1082 we pull the
data
out of the returned tuple and build a dictionary withfilename
as key and the returned data as atopostats_object
.This required converting
img_path
which is part of the returned dictionary toPath()
so that it is handled correctly (this is the expected type when processing end-to-end). See line 802 ofio.py
in the linked pull request.Describe the solution you would like.
AFMReader should ensure the
img_path
field of the loaded dictionary is of typePath
before returning thedata
.We should add a line to
AFMReader.topostats.load_topostats()
to convert this field.Describe the alternatives you have considered.
Leave conversion in TopoStats and users to convert if required. 🤷
Sample Image
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: