I was wondering if pathlib.Path objects were supported in stpipe (and packages depending on it like jwst) or if support was planned in the future.
I wanted to report an example issue I encountered recently: using a Path object as input to Step.run() leads to the _input_filename attribute not being set because the Path falls in the else category here.
The simple fix for users is to use strings as input path, but it took me a bit of time to figure this out because I missed the error message in the log.
Hi!
I was wondering if
pathlib.Path
objects were supported instpipe
(and packages depending on it likejwst
) or if support was planned in the future.I wanted to report an example issue I encountered recently: using a
Path
object as input toStep.run()
leads to the_input_filename
attribute not being set because thePath
falls in theelse
category here.The simple fix for users is to use strings as input path, but it took me a bit of time to figure this out because I missed the error message in the log.