-
Notifications
You must be signed in to change notification settings - Fork 56
exposed view_vector as kwarg for SVG export #232
Conversation
This looks ok to me. the change to exporters.py is not reverse compatible but as that's an internal file I think that's ok. I didn't merge because tests are failing. I've kind of lost track of where we are with that... At one point we knew some tests were failing due to in process python 2/3 stuff, but I'm not sure now |
Well, there are errors with GetSVG(), looks like it may be my fault, so I'll have to take a look |
giving a default value here should allow you to call getSVG() with only one arg. Then, tests should pass
sorry. typo.
@dcowden can you explain that to me? There are defaults set for the parameters, so existing scripts will run fine. Or do you mean that the SVG can't be imported properly again once exported using this option? |
@RustyVermeer Thanks for putting this PR together. |
oh @RustyVermeer you're right. when i looked at it earlier, i thought i saw a new param without a default, but i see they have defaults. I was on my phone, maybe it was cut off. sorry about that, looks good. |
I'm looking at this on my local machine. I don't want to keep making silly commits. Sorry for this, everyone. Thought this was in better shape than it is |
@RustyVermeer no worries! Let he who has not made silly commits complain ;) I'm thankful you're working on it given what the project pays. |
@dcowden @jmwright This PR has no conflicts.
and
both have opts. Users might be confused as to why view_vector does NOT exist in opts. Reasoning I have for keeping them separate is:
At least, that makes sense in my brain :) |
@RustyVermeer Thank you for this contribution. Your logic for keeping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks again @RustyVermeer ! |
Making a PR to address #213 .
The view vector has been removed already, so this kwarg just exposes the option to re-orient the SVG output