-
Notifications
You must be signed in to change notification settings - Fork 340
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
Add splines figure and script #6656
Conversation
This PR is related to issue #6643. It add a new figure and script to better explain the splines in the docs. Here I add the script. Let me know if it is ok. In what part of the docs should the figure go? At the end of -F argument?
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 but may I ask for a few improvements:
- add a tab in front of all commands inside the gmt begin/end block
- Add "show" to gmt end [the tests and doc builds turns that off anyway but it is handy when debugging and testing]
If you plan to add the PostScript file and update the sample1d.rst file perhaps do that as part of the same PR? If you follow the guidelines you will see that once you get the PS file and is happy with it and place it in the image directory then it needs to be added to git (so there will be another file showing up here) plus of course using dvc to add it to taht repo as well. Only after that would we be able to test this branch and build the doc, for instan.ce
Updated script following Paul's suggestions.
Changed name and format of the output file.
Thanks Paul. Yes, my idea is to edit the rst file and add the figure. I let you know if I need help. |
I am bit confused on how to proceed. Where should I add the ps file? |
Follow the instructions for adding a new test or doc script on https://docs.generic-mapping-tools.org/dev/devdocs/contributing.html#contributing-documentation Basically: |
This is the specific section with instructions for adding the figure to |
I think I have a problem with running the test. I do it as indicated in docs.
|
Could you try running the tests without any parallelization to find out which test is hanging? I.e., |
I have the same problem since 1 or 2 years. |
When I run
When I run
|
@Esteban82 You don't have run the full tests. You can simply run |
So this may also happen on Linux. I though it was only a problem on Windows. The issue in not in the tests themselves but ... somewhere else. Running them individually works but the whole suite hangs before the last two.
|
Script did not have executable permission set. |
Hi @Esteban82, are you ready to try to upload the PS to dvc and add the lines to sample1d.rst to include the figure and caption? The plot looks good to me. |
Hi Paul. Not really. I am still a bit lost. I think it would be better if someone else do it. |
OK, I can do the next bit and sort of show u the steps in the process.
Paul Wessel
Professor, Department of Earth Sciences
(808) 956-4778 | ***@***.***
http:https://www.soest.hawaii.edu/earthsciences
On May 6, 2022 at 11:43:26 AM, Federico Esteban ***@***.***) wrote:
Hi Paul.
Not really. I am still a bit lost. I think it would be better if someone
else do it.
—
Reply to this email directly, view it on GitHub
<#6656 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGJ7IXYGM7ZXMKAF3TFM3KDVITZU3ANCNFSM5U3ZXICA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
OK, so I checked out this branch, built it and ran all the test. I am getting this failure because the orig PS is not yet in the system:
I follow the Contribution guide on test failures and first check that the plot is OK and then copy it to where DVC expects it:
Now I can check with dvc:
Loos good so I add it to the database:
After that, git tells me that a new file has been staged:
So I commit my changes to git. |
OK, had not added the figure and caption to sample1d.rst yet so doing that now. |
Alright, now I need to upload the PS file to dvc:
|
I am now building the whole branch again and will run the tests to verify we pass and then I will build the documentation to ensure the sample1d man page is OK. This will take some minutes... |
Now it is good and ready to be reviewed by all. |
@PaulWessel When you merged the master branch into this branch, you probably reverted the changes to the dvc file. |
Fix whiespace
…ppingTools/gmt into add_gmt_splines_figure
Yes, something did not got exactly as planned. I am not sure why but I got a conflict on the dvc file. |
It's because PR #6673 also updated the dvc file. |
I think you need to run |
OK done |
Did you run |
Just 10 seconds ago. Should be OK now. |
Many thanks Paui!! I will look into detail this for the next time. |
I was thinking that the script could go to gmt-examples. BTW, for gmt-examples, I wonder if would be possible to create like a list of scripts and figure to add on it. |
This PR is related to issue #6643. It add a new figure and script to better explain the splines in the docs.
Here I add the script. Let me know if it is ok.
In what part of the docs should the figure go? At the end of -F argument?
Fixes #6643