Implements Saves for Last Successful Run

This commit is contained in:
2023-06-05 19:01:36 -03:00
parent 33612f2d7b
commit d0be244d3c
7 changed files with 116 additions and 57 deletions

View File

@@ -107,5 +107,7 @@ def mock_open(file, *args, **kwargs):
"phb.error.nsites.ljc": get_potentials_error_nsites(),
"phb.error.molname.ljc": get_potentials_error_molname(),
}
mock_file = mock.mock_open(read_data=values[file])
return mock_file()
if file in values:
return mock.mock_open(read_data=values[file])()
return mock.mock_open(read_data="")()