Skip to content
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

Bring coverage of plot3d/base.pyx up to 87% #5767

Closed
robertwb opened this issue Apr 12, 2009 · 19 comments
Closed

Bring coverage of plot3d/base.pyx up to 87% #5767

robertwb opened this issue Apr 12, 2009 · 19 comments

Comments

@robertwb
Copy link
Contributor

CC: @jasongrout @sagetrac-wcauchois

Component: doctest coverage

Issue created by migration from https://trac.sagemath.org/ticket/5767

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 13, 2009

comment:1

Bouncing to 3.4.2.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.4.2 Apr 13, 2009
@robertwb
Copy link
Contributor Author

comment:2

Before

SCORE sage/plot/plot3d/base.pyx: 5% (4 of 78)

After

SCORE sage/plot/plot3d/base.pyx: 87% (69 of 79)

I don't know when I'll have time to work on this again, so I think we should at least get these ones in.

@robertwb robertwb changed the title Bring coverage of plot3d/base.pyx up to 100% Bring coverage of plot3d/base.pyx up to 87% Apr 14, 2009
@jasongrout
Copy link
Member

comment:3

Attachment: 5767-plot3d-base-doctests.patch.gz

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 4, 2009

Attachment: 5767-referee.patch.gz

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 4, 2009

comment:4

REFEREE REPORT

Excellent work Robert! This patch applies to Sage 3.4.1 and the doctests are all valid. There were a number of misspellings which I corrected in 5767-referee.patch (I'm sorry I accidentally attached it twice; use either one). Besides that, I have a few concerns:

  • It looks like there are some typos due to copy-and-pasing:
    • On line 446 the documentation for tachyon() says it returns "an x3d input file".
    • On line 1202 the documentation for obj_repr() says it returns "the x3d representation of a group".
    • On line 1230 the documentation for jmol_repr() says it returns "the x3d representation of a group".
  • The documentation for jmol_repr on line 657 is somewhat confusing for me, especially when you say that jmol uses the strings to "construct self". Could you replace that with something like "construct a 3D mesh representing this object"? The same concern applies to the documentation for tachyon_repr and obj_repr.
  • Do you think it would improve the readability of the documentation to replace "self" with "!self!" -- that is, to apply preformatting to it?
  • What's up with the trailing spaces on every line?
  • On line 730 you use the word "preable". Is this a typo?

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 4, 2009

comment:6

Replying to @sagetrac-wcauchois:

REFEREE REPORT

Excellent work Robert! This patch applies to Sage 3.4.1

Hi Bill, you should really always apply against the latest development release. 3.4.1->3.4.2.rc0 was not a large release, but in many other cases there is a rather large, i.e. non-zero chance the patch would either not apply any more or be broken by other changes. There is always a sage.math binary of the latest release development snapshot, so you can use that. Another alternative is to have a review version of Sage that you upgrade from development snapshot to development snapshot.

Cheers,

Michael

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 4, 2009

comment:7

OK, I will do that. I'm sorry for the inconvenience I've caused you! The thing is, I'm building 3.4.2.rc0 right now and its taking a while -- so I figured I'd do this review and then once we addressed the issues we could handle rebasing. But I understand the importance of ensuring compatibility with the latest release.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 4, 2009

comment:8

Replying to @sagetrac-wcauchois:

OK, I will do that. I'm sorry for the inconvenience I've caused you!

I have no clue if this is actually a problem, I just wanted to point out how to avoid problems since this has been an issue with your reviews in the past ;)

The thing is, I'm building 3.4.2.rc0 right now and its taking a while -- so I figured I'd do this review and then once we addressed the issues we could handle rebasing. But I understand the importance of ensuring compatibility with the latest release.

Cool.

Cheers,

Michael

@robertwb
Copy link
Contributor Author

robertwb commented May 4, 2009

comment:9

Wow, looks like I wasn't able to spell that day... thanks for looking at this, I'll address the issues you mentioned and post a patch shortly.

@robertwb
Copy link
Contributor Author

robertwb commented May 5, 2009

apply after other two

@robertwb
Copy link
Contributor Author

robertwb commented May 5, 2009

@robertwb
Copy link
Contributor Author

robertwb commented May 5, 2009

comment:10

Thanks for looking into this.

Replying to @sagetrac-wcauchois:

REFEREE REPORT

Excellent work Robert! This patch applies to Sage 3.4.1 and the doctests are all valid. There were a number of misspellings which I corrected in 5767-referee.patch (I'm sorry I accidentally attached it twice; use either one). Besides that, I have a few concerns:

  • It looks like there are some typos due to copy-and-pasing:
    • On line 446 the documentation for tachyon() says it returns "an x3d input file".
    • On line 1202 the documentation for obj_repr() says it returns "the x3d representation of a group".
    • On line 1230 the documentation for jmol_repr() says it returns "the x3d representation of a group".

Fixed.

  • The documentation for jmol_repr on line 657 is somewhat confusing for me, especially when you say that jmol uses the strings to "construct self". Could you replace that with something like "construct a 3D mesh representing this object"? The same concern applies to the documentation for tachyon_repr and obj_repr.

I clarified it.

  • Do you think it would improve the readability of the documentation to replace "self" with "!self!" -- that is, to apply preformatting to it?

I'm not sure it's worth it.

  • What's up with the trailing spaces on every line?

Sorry, I attached another patch that removes this (but I'm not sure if it'll apply cleanly, if not it's probably not worth it).

  • On line 730 you use the word "preable". Is this a typo?

Yep, I meant preamble. Fixed.

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 6, 2009

Attachment: 5767-referee2.patch.gz

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 6, 2009

comment:11

REFEREE REPORT:

Looking over the code again, I noticed a few other instances where "concatenate" was spelled incorrectly. I fixed these in 5767-refree2.patch. With this and Robert's changes, positive review.

(By the way Robert: Mercurial queues is awesome! I made 5767-all.patch with qfold :).)

@robertwb
Copy link
Contributor Author

robertwb commented May 6, 2009

comment:12

Note that your 5767-all.patch lost all authorship information...

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 6, 2009

Attachment: 5767-all.patch.gz

this patch incorporates ALL of the changes; apply to sage 3.4.2

@sagetrac-wcauchois
Copy link
Mannequin

sagetrac-wcauchois mannequin commented May 6, 2009

comment:13

Replying to @robertwb:

Note that your 5767-all.patch lost all authorship information...

Oh shoot! OK, I fixed it manually and it works. I think that MQ unfortunately does not preserve the metadata usually associated with a changeset.

@robertwb
Copy link
Contributor Author

robertwb commented May 6, 2009

comment:14

I'm pretty sure queues can be used to preserve metadata using qfold, but that's fine. Thanks for looking at this.

  • Robert

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 7, 2009

comment:15

Merged 5767-all.patch in Sage 4.0.alpha0.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed May 7, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants