Repository navigation
FIX: Return figure handle in plot_drop_log - #1398
Conversation
There was a problem hiding this comment.
outch... this breaks backward compat
@Eric89GXL any opinion?
maybe we can return both perc + fig ? @mainakjas would that help?
shall we create a drop_stats method to get this perc?
There was a problem hiding this comment.
perc + fig is fine with me.
|
I can live with this change since it could be considered a bugfix :) |
There was a problem hiding this comment.
please don't do this. It will break my code.
There was a problem hiding this comment.
what is the solution then? should we have a return_fig parameter as input which defaults to False and returns both perc and fig if True, otherwise returns only perc?
There was a problem hiding this comment.
:)
I would agree with @Eric89GXL that returning fig would be more consistent...
would it break just your code or code you gave to someone?
to get the perc about a drop_log_stats() method?
There was a problem hiding this comment.
If I'm not the only one using it, then +1 for proper deprecation: 1) have return_fig=True mean return only the figure, 2) have False (default) give a deprecation warning, 3) add drop_log_stats() method (which I think would only really be a list comprension, but that's fine). WDYT?
There was a problem hiding this comment.
+1 for deprecation too. Just realize that the function did not return fig on master ... so no code broken for me. So only return fig and perc goes in another method
There was a problem hiding this comment.
+1 for deprecation too. Just realize that the function did not return fig on master ... so no code broken for me. So only return fig and perc goes in another method
you mean no deprecation then? I don't follow
There was a problem hiding this comment.
well this function should not return perc but a figure. we need to change that.
There was a problem hiding this comment.
ok so no deprecation but bug fix?
|
I added deprecation warning + |
|
ok, comments addressed. |
There was a problem hiding this comment.
you should mention that it will default to true in 0.9 and then be removed.
|
that's it. Then +1 for merge |
|
ok done ! |
There was a problem hiding this comment.
how did I miss this pep8 error :)
float(2) -> 2.
FIX: Return figure handle in plot_drop_log
|
thanks @mainakjas ! |
I removed the return parameter
percsince it wasn't being used anywhere.