Skip to content

Loading results from cluster after non-local execution of solve #170

@fmccormack

Description

@fmccormack

In attempting to load a .outbin from a non-local execution of solve, there's an error that the file doesn't exist. E.g., in the code below, I try to load the outputs (.outbin, .outlog, and .errlog) of a model run that should be within the directory /g/data/<project>/<userid>/execution/wilkes/<runtimename>. However, I get the "FileNotFoundError: [Errno 2 ] No such file or directory: 'wilkes-Initial_N1.bin'"

I think that the error can be traced to line 1389 of execute.py where the load_results_from_cluster() function is given md.miscellaneous.name as an argument, which is not the same as the execution path from md.cluster. The reason I think this is the case is if you do something like

md = pyissm.model.execute.load_results_from_disk(md, f'{md.cluster.executionpath}/<dirname>/<filename>.outbin')

then it correctly loads the results from the disk. So it seems it's a path issue.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    pyissmDefault label for all pyISSM issues

    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