Repository navigation
Improve detection of cubes - #6620
Conversation
Add two macros working on virtual names that can detect cubes vs grids. Also, use n_bands to help detect cubes vs grids. Now works in Julia again. Closes #6617.
|
Before I submitted this PR, I ran all the CLI tests to make sure it worked. However, I typically do not build and test if pyGMT (@seisman) and GMT.jl (@joa-quim. or GMT/MEX for that matter) is affected - such as this one. How difficult would it be for me to run all the tests in pyGMT and GMT.jl. I have both repos installed? Is there something equally simple to what we have for the CLI to run your tests? |
If you have the conda environment setup, then you should be able to run the full tests by typing |
|
Thanks, I will give it a try. This also reminds me of this potential solution to the changing grids: We do have test.generic-mapping-tools.org and we could simply keep the current set of files needed there with a limited gmt_data_server.txt and let gmtest.in select the test server. As the regular data server gets updated the test server directory stays the same. Apart from fixing any remaining old-data failures, going forward we should not have to worry. If we need additional tiles or data for testing then we just place a copy in the test directory as well and it will be "frozen". |
It sounds a good idea, but we already have |
|
The tests in Julia are run by ] test GMT But mind you that sometimes they crash due to an unknown heisenbug. When it happens it does so around the MAKECPT tests. There is also a new failure even more mysterious that sends GMTcpt objects to the function that reads datasets. In either cases, I just rerun the tests. |
|
I added GMT#master and using GMT and then tried the test. I will add the output below but one thing I noticed that is odd is this: I am able to run debugs etc via GMT_LIBRARY so what does this mean? Anyway, it looks like it tried to run the tests since I got various GMT messages. Let me know if there are things here that puzzles you or we should have a look at since this is the first time the tests have been run on macOS possibly: |
|
As for @seisman I will have to do this on the Intel machine:
|
|
OK. reinstalled miniconda for arm and got further this time. Perhaps @seisman can help with this: |
You can change into your
|
|
I had already activated pygmt so got this: How to undo my activation and rerun taht one? |
|
Do this first: |
|
OK done, but |
|
It should be available in conda-forge. Can you try |
|
Had already done that per debug instructions. I think I installed it via pip in the past (for use with CLI GMT testing). |
|
Maybe you can remove |
|
OK, installing now. Will test when done. |
The Julia tests are too verbose but I can't find a way of making more silent. The above is confusing because what is tested is the code that prints that message. So the test worked well because that message was printed. Same happens with several other printed messages where I'm testing the conditions that lead to those messages printings. But you have 3 real failures. One is because you don't seem to have Can't see why this only happens to you (The Mac CI tests parse these fine). |
|
Thanks, test all ran; got
and one tiny pdf plot opened up - possibly a test with a show? |
|
My xbuild directory in fact does not have a supplemental.so. But I have debugged supplements (a lot) but there are always issues: e.g., if I make changes to a supplement and run debug again it does not rebuild those modules and hence it is all bonkers in debugging. I have to rebuild the entire thing (slow) and start again. Painful - so getting motivated to switch to VSC. |
You need to run |
|
Getting there:
|
|
Nevermind about Xcode and supplements.so - it is built. And earthtide is in it. |
|
That message is printed when so the And, apparently you don't et this (that runs only Julia code, no GMT calls)? |
|
I get " -JB20/3.39519326554e-313/45/65" |
|
Maybe some fun M1 Apple Silicon and Julia issues? |
|
So it's shifting the lon/lat. It puts lat in place of lon and trash in place of lon. |
|
No, same. |
|
and? |
|
"4/3.01255753647272e-314/3.01255754042525e-314/2.36141770257029e-314+r" |
|
So this is the same problem as the |
|
But this works? |
|
That's because you didn't run the command from a window where GMT has been loaded (that loads |
|
OK, works |
It was in a window that started with "using GMT". Is that different than "loading"? |
|
The so, after doing I think Steve Jobs is picking on you. |
|
Ah, yes you re right. This time it was not Steve. I forgot that I have added it to my |
|
OK, so tests fail because the Printf was not in the official setup then |
|
Wrong thread earlier. I did the up that you said and tried teh @Sprint again without manually loading Printf and that did not work. I thought you meant you had updated GMT.jl to load Printf so taht I would not have to. |
|
No, I meant to run all test again. To run |
No. The tests failed because M1 was not able to run correctly the |
|
ok tomorrow |
Add two macros working on virtual names that can detect cubes vs grids. Also, use n_bands to help detect cubes vs grids.
Now works in Julia again. Closes #6617.