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

Fixing black column problem in kriging #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rafaelalmeida
Copy link
Contributor

My attempt to solve #12.

@moovida, do you think this would work? I tested with the first test from the unit tests, and also with some of my own data.

I am afraid this could fail in swapped-axis projections, or projections where the y axis is not a northing (that is, it "grows" downwards, not upwards), but it seems to me that in these cases, the previously existing code for getCoordinate would fail anyway, if I understand correctly.

- Changed strategy to pre-calculate grid positions, avoiding rounding
errors;
- Revived one of the unit tests for the kriging module;
- Some documentation fixes and improvements;
- Minor refactorings for cleaner code.
Changing NumericUtils class to use class-specific max() methods to
avoid compilation errors in newer environments (shouldn't affect older ones)
@rafaelalmeida
Copy link
Contributor Author

I still could not get the build to pass in Travis. @moovida, when you can, could you give me some advice on how to reproduce the build locally? Eclipse says everything's OK.

@moovida
Copy link
Member

moovida commented Sep 23, 2015

Hi @rafaelalmeida , sorry for not coming back to you earlier.
I am abroad still and will be active by next week. Then I will look into this properly.

First off, thanks for this contribution, I really hope to get this going.

Locally the build will be tested just by running maven as: mvn install
It will run all the tests also.

But I am quite sure you are already doing this, so I am not sure what you mean.

@rafaelalmeida
Copy link
Contributor Author

Hi @moovida, no problem!

mvn install says everything is fine, but reading the build log more carefully showed the exact commands Travis uses (I hadn't noticed that earlier, though it was only the log output). For testing, it's mvn test -B.

Even then it runs fine on my machine, but at least now I have a much better idea of where the error is.

I'll try to get the checks passing before next week, so you can spend your time on a higher-level look at the solution.

@@ -7,9 +7,8 @@
<version>0.7.9-SNAPSHOT</version>
</parent>

<groupId>org.jgrasstools</groupId>
<artifactId>jgt-hortonmachine</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you remove the org.jgrasstools because of your custom build?
I assume this might be a problem when building. Didn't notice that before.

@moovida
Copy link
Member

moovida commented Oct 4, 2015

Nice changes @rafaelalmeida , nice to see you enabled the testcase for it. That is a huge plus.

I built it on my machine and it went smooth also. The test takes some time, it would be great to have a smaller one. Do you happen to have one at hand?

@rafaelalmeida
Copy link
Contributor Author

@moovida I believe I removed that line simply because Eclipse sent me a warning saying it was redundant. I can add it back, but I don't think that's the problem. Travis says mvn install runs OK, the problem is in mvn test -B.

I don't have a smaller testcase at hand, but I can build an artificial one with a few points. The current test case data is the one that was already present (albeit commented-out) in the repository.

Is the artificial test case better than the current one?

@moovida
Copy link
Member

moovida commented Oct 13, 2015

Hi @rafaelalmeida , sorry for my late late replies, life is currently quite hard on me with time for the open source projects. Just know that I really appreciate your contributions.

@moovida I believe I removed that line simply because Eclipse sent me a warning saying it was redundant. I can add it back, but I don't think that's the problem. Travis says mvn install runs OK, the problem is in mvn test -B.

No, you are right, I didn't notice that it was double. And it did indeed build.

I don't have a smaller testcase at hand, but I can build an artificial one with a few points. The current
test case data is the one that was already present (albeit commented-out) in the repository.

Is the artificial test case better than the current one?

The test was probably commented out because it took more than the rest of the build and I don't think there was a real check behind it. I.e. the results looked good, so the author placed that as a testcase. But I agree it is not simple to create testcases for certain modules.
So if you happen to be able to put together a small artifical testcase which is assured to be right, that would be really amazing.

@rafaelalmeida
Copy link
Contributor Author

Hi @moovida! I haven't forgotten this, but I'm also out of time for the next couple days. I expect to complete this update as soon as possible!

@moovida
Copy link
Member

moovida commented Nov 5, 2015

Don't worry @rafaelalmeida , there is no hurry. Thanks for keeping this in mind. I am also very busy in this period, so at least we are aligned :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants