Closed arvkevi closed 1 year ago
Hi @arvkevi thanks for catching this and providing the details.
This is a mistake in the docs. The correct parameter name should be filepath
instead of path
, so the following should work.
synthesizer.save(filepath='my_synthesizer.pkl')
And calling it by the keyword name is indeed optional. So as you mention, you can always call save
without it.
I've updated the docs now (may require a refresh to see). Seems like all our synthesizers accidentally had path
instead of filepath
.
Thanks, @npatki. Your suggestion worked on my end and the save
docs for all synthesizers read "filepath" now.
Great thanks for confirming 😃 Closing off the issue!
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
The documentation suggests there is a
path
keyword argument in thesave
method, but thesave
method of theBaseSynthesizer
class does not have a keyword argument.Steps to reproduce
This raised a
TypeError
:Passing a string as an argument works as expected:
I'm happy to open a PR, provided some guidance, and if you think it would be helpful. Congrats on the v1.0 release btw, I love this library!