load_model fails with TypeError: unsupported operand type(s) for /: 'PosixPath' and 'ModelPrivateAttr'
Closed this issue · 1 comments
sooheon commented
load_model being a classmethod, cls._profiles_fname and cls._settings_fname are not instantiated when called, so are not recognized as strings and can't be added to Path with / op.
yfukai commented
Hi, thanks @sooheon for finding this! I believe this is already fixed in the newest version by setting the filename outside the class. I'll close this for now but please feel free to reopen this!
BaSiCPy/src/basicpy/basicpy.py
Lines 835 to 877 in 07d438e