-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fixes issue with '.py' extension in script() functions #104
Conversation
Re-wrote to change ._name and pop old name from elements if not 'default'. Preserves original objects.
* boxfill.py * meshfill.py * isofill.py * textcombined.py * texttable.py * vector.py Every function had a reference to color which was expected to be float(old color format), except vector, whose .line property had changed to .linetype, which was causing an error.
thanks @embrown do we have a test for this? |
Looks reasonable to me 👍 |
@aashish24 Oh that's right! I forgot to write a test. I'll put one up there. |
LGTM .. |
@embrown do you want to merge this? |
@aashish24 I haven't run the tests on vcs with this in place, so I was waiting for someone more official than myself to do so and make sure I didn't break anything. |
Sam and/or Charles,
Can you take a look at this for Ed?
Thanks,
Dean
From: Edward Brown <[email protected]<mailto:[email protected]>>
Reply-To: UV-CDAT/vcs <[email protected]<mailto:[email protected]>>
Date: Wednesday, December 14, 2016 at 6:27 AM
To: UV-CDAT/vcs <[email protected]<mailto:[email protected]>>
Subject: Re: [UV-CDAT/vcs] Fixes issue with '.py' extension in script() functions (#104)
@aashish24<https://github.com/aashish24> I haven't run the tests on vcs with this in place, so I was waiting for someone more official than myself to do so and make sure I didn't break anything.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#104 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACrXKaPxmTJb8gdOoBu5gH_EbsitaTeKks5rH_zHgaJpZM4LAdhD>.
|
Thank you @williams13. I would have run the tests myself, but I'm not quite sure what the testing process with VCS is now, since the repo split. |
@embrown @chaosphere2112 or @danlipsa can run the tests (and answer any questions you may have). you can always ping me or @doutriaux1 as well. |
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.
This all looks fine; the test needs some work though.
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.
Ran into some issues
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.
Need to fix ext_1 and ext_2
@doutriaux1 @chaosphere2112, I'm finding a lot of bugs in the various script() functions. |
@embrown as far the .scr goes we should deprecate the saving of them if not done already. We should focus on .json ones as far as script goes, and simply reading in OLD scr (as in any recent function would not be in) |
@doutriaux1 Yeah, the SCR deprecation warnings have been in. |
Tested to ensure that scriptrun() on the output scripts creates objects identical to those on which script() was called.
@doutriaux1, with a fair bit of help from @chaosphere2112 I was able to get the script() functions working for python files. They produce valid python scripts, and those scripts run correctly with vcs.scriptrun(). I'll push my changes to the test that validates the object created from scriptrun() are identical to those on which script() was called. |
@doutriaux1 @chaosphere2112 , This is done and should be merge-able. Once it's merged, All of the tests I'm adding to the vcs test suite today should work. |
@embrown sounds good. I will let @chaosphere2112 some time to review your changes since he requested them. How do you run the documentation test suite again? I would like to add it to travis.yaml eventually. |
@doutriaux1 we're working on building the documentation tests into the vcs test suite, so it should just be run every time the vcs tests are run. |
@embrown if you're already doing it then all the merrier for me! |
@doutriaux1 I'm working on it. I've got a PR submitted for the initial test (just tests docstrings from vcs.queries because those all pass without issue), and I'll be adding more tests onto that before I leave today. When I push my final changes to CDAT/cdat#2151, I will add a comment listing which branches need to be merged before all the new tests should (theoretically) pass. |
@embrown any update on this branch? Are we just waiting on the review? |
@aashish24 not sure. My internship ended in January, so I think the question would be better directed to @doutriaux1. |
thanks @embrown @doutriaux1 could you please review this branch as I am less familiar with this code but I can attempt to review if no one else does. |
Closes #103
Fixes script() functions for:
Every function had a reference to color which was expected to be float(old color format), except vector, whose .line property had changed to .linetype, which was causing an error.