Skip to content

'FileNotFoundError' in running nepal.fwd.py #93

@satoshi-pes

Description

@satoshi-pes

I tried the example project of Nepal earthquake shown by the wiki, but got error:
A simple forward computation

error:

Traceback (most recent call last):
File "/home/xxxx/test/forward_modeling/nepal.fwd.py", line 73, in <module>
  runslip.make_green(home,project_name,station_file,fault_name,model_name,
File "/home/xxxx/MudPy/src/python/mudpy/runslip.py", line 169, in make_green
  copy('staticgf',green_path+'static/'+model_name+'.static.'+strdepth+'.sub'+subfault)
File "/home/xxxx/miniconda3/lib/python3.9/shutil.py", line 427, in copy
   copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/xxxx/miniconda3/lib/python3.9/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'staticgf'

This error is resolved by replacing the tsunami flag in nepal.fwd.py from 'tsunami=None' to 'tsunami=False'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions