UO-Geophysics / MudPy

Kinematic and static rupture forward modeling and inversion code
Other
116 stars 63 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '.../Nepal_forward_test/output/ruptures/nepal.log' #82

Open cchuang123456 opened 3 years ago

cchuang123456 commented 3 years ago

hello dmelgarm:

I am trying to run A simple forward computation using nepal.fwd.py according to wiki. when finished runing the green functions and synthetics,I want to solve forward problem , I got the error:

Traceback (most recent call last):

File "/home/ccoba/fake_quake/MudPy/examples/forward_modeling/nepal.fwd.py", line 84, in forward.waveforms_fakequakes(home,project_name,fault_name,None,GF_list,

File "/home/ccoba/fake_quake/MudPy/src/python/mudpy/forward.py", line 325, in waveforms_fakequakes write_fakequakes_waveforms(home,project_name,rupture_name,waveforms,GF_list,NFFT,time_epi,dt)

File "/home/ccoba/fake_quake/MudPy/src/python/mudpy/forward.py", line 1286, in write_fakequakes_waveforms epicenter,time_epi,Mw=read_fakequakes_hypo_time(home,project_name,rupture_name,get_Mw=True)

File "/home/ccoba/fake_quake/MudPy/src/python/mudpy/forward.py", line 3462, in read_fakequakes_hypo_time f=open(log_file,'r')

FileNotFoundError: [Errno 2] No such file or directory: '/home/ccoba/exprience/Nepal_forward_test/output/ruptures/nepal.log'

I checked the code, there is no nepal.log generated in Nepal_forward_test/output/ruptures/。

blancasl commented 2 years ago

HI dmelgarm, I have the same problem, if you could help me I would appreciate it, greetings!

File "nepal.fwd.py", line 84, in forward.waveforms_fakequakes(home,project_name,fault_name,None,GF_list, File "/home/yoav/Escritorio/Practica/MudPy/src/python/mudpy/forward.py", line 325, in waveforms_fakequakes write_fakequakes_waveforms(home,project_name,rupture_name,waveforms,GF_list,NFFT,time_epi,dt) File "/home/yoav/Escritorio/Practica/MudPy/src/python/mudpy/forward.py", line 1347, in write_fakequakes_waveforms epicenter,time_epi,Mw=read_fakequakes_hypo_time(home,project_name,rupture_name,get_Mw=True) File "/home/yoav/Escritorio/Practica/MudPy/src/python/mudpy/forward.py", line 3568, in read_fakequakes_hypo_time f=open(log_file,'r')

giuliasgattoni commented 2 years ago

Hello, I'm having the same problem.. has anyone solved it? I bypassed it somehow (by manually inserting the hypocenter data that the code was looking for in the non-existent log file), however finding a more stable solution would be much better... Thank you