<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 11:50 AM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p dir="ltr">On 14 Oct 2014 18:29, "Charles R Harris" <<a href="mailto:charlesr.harris@gmail.com" target="_blank">charlesr.harris@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Tue, Oct 14, 2014 at 10:57 AM, Nathaniel Smith <<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>> wrote:<br>
>><br>
>> On 4 Oct 2014 22:17, "Stéfan van der Walt" <<a href="mailto:stefan@sun.ac.za" target="_blank">stefan@sun.ac.za</a>> wrote:<br>
>> ><br>
>> > On Oct 4, 2014 10:14 PM, "Derek Homeier" <<a href="mailto:derek@astro.physik.uni-goettingen.de" target="_blank">derek@astro.physik.uni-goettingen.de</a>> wrote:<br>
>> > ><br>
>> > > +1 for an order=2 or maxorder=2 flag<br>
>> ><br>
>> > If you parameterize that flag, users will want to change its value (above two). Perhaps rather use a boolean flag such as "second_order" or "high_order", unless it seems feasible to include additional orders in the future.<br>
>><br>
>> Predicting the future is hard :-). And in particular high_order= would create all kinds of confusion if in the future we added 3rd order approximations but high_order=True continued to mean 2nd order because of compatibility. I like maxorder (or max_order would be more pep8ish I guess) because it leaves our options open. (Similar to how it's often better to have a kwarg that can take two possible string values than to have a boolean kwarg. It makes current code more explicit and makes future enhancements easier.)<br>
><br>
><br>
> I think maxorder is a bit misleading. The both versions are second order in the interior while at the ends the old is first order and the new is second order. Maybe edge_order?</p>
</div></div><p dir="ltr">Ah, that makes sense. edge_order makes more sense to me too then - and we can always add interior_order to complement it later, if appropriate.</p>
<p dir="ltr">The other thing to decide on is the default. Is the 2nd order version generally preferred (modulo compatibility)? If so then it might make sense to keep it the default, given that there are already numpy's in the wild with that version, so we can't fully guarantee compatibility even if we wanted to. But what do others think?</p></blockquote><div>I'd be inclined to keep the older as the default and regard adding the keyword as a bugfix. I should have caught the incompatibility in review.<br><br></div><div>Chuck<br></div><div> <br></div></div></div></div>