-
Notifications
You must be signed in to change notification settings - Fork 86
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
AttributeError: Unrecognized attribute: rho_air #605
Comments
after commenting above lines , I ran code and received another error :- ==> Running with command: During handling of the above exception, another exception occurred: Traceback (most recent call last): *** FORTRAN EXE FAILED *** make[2]: *** [output] Error 1 |
That could happen if the version of the GeoClaw Python packages is different from the "Ike" example. Those 2 values in particular were added later than the original data classes were written. I would check to make sure that the version of the python packages matches the version of the example code. |
Name: clawpack @mandli how about second error caused by amr.data, I pasted |
The version of the clawpack python tools is different than the version of the example, not Python itself. You can check the version of the installed clawpack python tools by doing: import clawpack
clawpack.__version__ into a The second error is almost certainly related to the first so see if you can get that working first. |
I have updated the version to python (3.11) and clawpack (5.10.0) make data -f Makefile /home/s.bx.shrivastava/model/clawpack-v5.10.0/geoclaw/src/2d/shallow/Makefile.geoclaw /home/s.bx.shrivastava/model/clawpack-v5.10.0/clawutil/src/Makefile.common |
That error suggests that the Python GeoClaw package has not been successfully installed as it cannot find the class. What did the output from the python prompt say? Also, the examples in the |
You should also make sure clawpack is on the Python path so that it can
find clawpack modules for importing. So you might first try this in a
Python shell:
>> import clawpack
and if that works,
>> from clawpack.geoclaw.surge.storm import Storm
See also
https://www.clawpack.org/python_path.html
for some hints.
…On Fri, May 3, 2024 at 12:25 PM Kyle Mandli ***@***.***> wrote:
That error suggests that the Python GeoClaw package has not been
successfully installed as it cannot find the class. What did the output
from the python prompt say? Also, the examples in the surge-examples
repository are not necessarily up to date although it should be straight
forward to fix that if you can get everything installed correctly. I would
start with trying out the Ike example in the GeoClaw directory itself at
$CLAW/geoclaw/examples/storm-surge/ike and making sure that runs.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/clawpack/geoclaw/issues/605*issuecomment-2093636545__;Iw!!K-Hz7m0Vt54!mZtkawMGM8o3HNAlk7H8kdvqzW8M8C9W0SOm_EeJvootXVK9E8SWuTT5tF0FODVX7VmagUeaY3LLr9eHMRy7$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAFPZ6QWXNYVODGMJ7ENZGDZAPQBNAVCNFSM6AAAAABHEEC6QSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJTGYZTMNJUGU__;!!K-Hz7m0Vt54!mZtkawMGM8o3HNAlk7H8kdvqzW8M8C9W0SOm_EeJvootXVK9E8SWuTT5tF0FODVX7VmagUeaY3LLr3fb15yS$>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thankyou very much @mandli and @rjleveque need you one more help, which output file will be helpfule to know gridwise Storm Surge? |
The output is in a set of overlapping grids, which can be difficult to deal with depending on your application. If you would like a grid that you specify we have that functionality in something called fixed grids. There is an example of using both fixed grids and fixed grid monitoring that may be useful. Alternatively, if you want the grid structure itself, you can find that in the output files The question about modification of an existing example is a good one but is what I tend to do. |
I am trying to run the surge example for Ike in same folder but getting the below error, please check and help . on top of that if comment this line it is throwing same error for ambient_pressure in next line
make .plots -f Makefile /home/shrivastava/clawpack_src/clawpack/geoclaw/src/2d/shallow/Makefile.geoclaw /home/shrivastava/clawpack_src/clawpack/clawutil/src/Makefile.common
make[1]: Entering directory
/home/shrivastava/MAdli/surge-examples/ike' make data -f Makefile /home/shrivastava/clawpack_src/clawpack/geoclaw/src/2d/shallow/Makefile.geoclaw /home/shrivastava/clawpack_src/clawpack/clawutil/src/Makefile.common make[2]: Entering directory
/home/shrivastava/MAdli/surge-examples/ike'rm -f .data
python3.6 setrun.py geoclaw
11 days, 7:00:00
*** Unrecognized attribute: rho_air
*** Perhaps a typo?
*** Add new attributes using add_attribute method
Traceback (most recent call last):
File "setrun.py", line 610, in
rundata = set_storm(rundata)
File "setrun.py", line 529, in set_storm
data.rho_air = 1.15
File "/home/shrivastava/.local/lib/python3.6/site-packages/clawpack/clawutil/data.py", line 196, in setattr
raise AttributeError("Unrecognized attribute: %s" % name)
AttributeError: Unrecognized attribute: rho_air
make[2]: *** [data] Error 1
make[2]: Leaving directory
/home/shrivastava/MAdli/surge-examples/ike' make[1]: *** [.data] Error 2 make[1]: Leaving directory
/home/shrivastava/MAdli/surge-examples/ike'make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: