-
Notifications
You must be signed in to change notification settings - Fork 15
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
Reorganize unittests for tc_surge_geoclaw
#148
Comments
Ok, I traced this back, and the time is mostly lost in the concatenating of hazard objects, and more precisely in the concatenation of the centroids. 31 of the 40 seconds are used by |
🙌 awesome! Do you also know how this can be sped up? |
I will definitely try to find a solution :D |
On my laptop it takes 18s 🙄 Other issue: there is an integration test failing on my machine, cell 3 of the tutorial The error is the same for both the test and the tutorial: The warning preceding the error: |
The test also fails for me, but the error message is:
|
Ok, so the unit test can be made very quick by making the centroids smaller. Fix propose in PR: #149 |
On Euler the said test fails in yet another way:
|
This Geoclaw thingy seems to be somewhat experimental... |
Just FYI: This is the same error as the one I get. I looked into the |
Hi Emanuel, it seems like the module (tc_surge_geoclaw) has been deleted from the package. Am I right? I cannot fin it under the climate_petals directory. |
The package has not been deleted. I am not sure what you are missing. |
Hi @chahank, I am looking for this "climada_petals.hazard.tc_surge_geoclaw" and I cannot find it under climate_petals. |
I got it, thank you so much for your help. |
just FYI: The GeoClaw runner will run the GeoClaw executable in a subprocess, and will first try to compile it from Fortran if it does not exist (hence the Makefile execution). Compiling is a highly system-dependent operation, so it's not surprising that this fails in different ways on various systems. |
With #109 came a bunch of new unittests. One of them,
climada_petals.hazard.tc_surge_geoclaw.test.test_tc_surge_geoclaw.TestHazardInit.test_init
, takes 46 seconds on Jenkins (and, depending on the settings, up to 130 seconds on the Euler cluster).According to our guide lines this is too much for any test let alone a unit test.
I suggest to
The text was updated successfully, but these errors were encountered: