-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return API for Scaper.generate #114
Comments
Pulling in latest relevant comment so we can continue here:
|
Based on offline discussion:
This also means we'll probably have up update the call API, which is currently this: def generate(self, audio_path, jams_path, allow_repeated_label=True,
allow_repeated_source=True,reverb=None, save_isolated_events=False,
isolated_events_path=None, disable_sox_warnings=True, no_audio=False,
txt_path=None, txt_sep='\t', disable_instantiation_warnings=False): In particular, we'll have to think about The least disruptive would be to change the first two into option args with defaults= @pseeth thoughts/comments? |
I like turning everything into an optional arg with |
Hmm, on second thought, if we make Options:
It may sound "extreme", but I am actually partial to option 3. You? |
Hmm, I think |
Yes, I think when Given this API though, I don't love the term "no_audio", because it's a little vague. But I can live with that and then when we break the API we can consider renaming this too. OK, I think we have a path forward for this now. I'll work on a PR. |
Awesome, yeah I agree that |
The sequence of changes discussed in #105 contains in it an option to return something from
Scaper.generate
. After offline discussion, we realized this would be better served in its own issue, and in a PR that get's merged post #105.The text was updated successfully, but these errors were encountered: