Closed GoogleCodeExporter closed 9 years ago
this can be tested running;
EQRM/trunk/eqrm_core/demo/plot$ python demo_motion.py
fails with;
/usr/local/python-2.7.2/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core
.py:14532: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
File "demo_hazard.py", line 40, in <module>
colourmap=colourmap, cb_label=cb_label)
File "/nas/gemd/georisk_models/earthquake/sandpits/duncan/EQRM/trunk/eqrm_core/eqrm_code/plotting/plot_api.py", line 64, in fig_hazard
period, return_period)
File "/nas/gemd/georisk_models/earthquake/sandpits/duncan/EQRM/trunk/eqrm_core/eqrm_code/output_manager.py", line 254, in load_lat_long_haz_SA
SA_list, periods_f = load_hazard(os.path.join(output_dir, file_name))
File "/nas/gemd/georisk_models/earthquake/sandpits/duncan/EQRM/trunk/eqrm_core/eqrm_code/output_manager.py", line 219, in load_hazard
f=open(file_full_name,'r')
IOError: [Errno 2] No such file or directory:
'./plot_data/output/plot_prob_haz2/newc_soil_SA_rp[500].txt'
dgray@rhe-compute1:/nas/gemd/georisk_models/earthquake/sandpits/duncan/EQRM/trun
k/eqrm_core/demo/plot$ python demo_motion.py
/usr/local/python-2.7.2/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core
.py:14532: UserWarning: wxPython/wxWidgets release number mismatch
warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
File "demo_motion.py", line 38, in <module>
cb_label=cb_label, annotate=annotate, show_graph=show_graph)
File "/nas/gemd/georisk_models/earthquake/sandpits/duncan/EQRM/trunk/eqrm_core/eqrm_code/plotting/plot_api.py", line 622, in fig_motion
data = om.load_motion_sites(input_dir, site_tag, soil_amp, period)
AttributeError: 'module' object has no attribute 'load_motion_sites'
Original comment by duncan.g...@gmail.com
on 9 Aug 2012 at 1:39
Actually, need to create the data;
To create data;
X:\trunk\eqrm_core\demo\plot\plot_data\plot_scen_gm.py
To plot data;
X:\trunk\eqrm_core\demo\plot\demo_motion.py
Original comment by duncan.g...@gmail.com
on 9 Aug 2012 at 3:32
The demo_motion script works now. I'm going to close this ticket, the
description is too vague to keep open, though there still might be problems
with other plotting functions.
Original comment by duncan.g...@gmail.com
on 10 Aug 2012 at 4:21
Original issue reported on code.google.com by
duncan.g...@gmail.com
on 8 Aug 2012 at 5:53