restrict Capillary.gradient to vectors to avoid confusions#330
restrict Capillary.gradient to vectors to avoid confusions#330chrisbrahms wants to merge 2 commits intoLupoLab:masterfrom
Conversation
jtravs
left a comment
There was a problem hiding this comment.
This is a breaking change, in that I often use a Tuple for this. Is there no other way around this?
|
I should've been more specific--the restriction is only for multi-point gradients. For simple input-output gradients you should continue to use a Tuple anyway. Is that still a problem? The issue comes just in parsing the arguments to |
|
No, I always use Tuples even for multi-point gradients. But it doesn't really matter, I am probably the only one and I can fix it. |
this is mainly to fix some issues further down the line with using some processing functions which parse the arguments to
prop_capillarybased on type. needs a better long-term fix but this way at least that throws the correct error.