Skip to content

Commit

Permalink
update path keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
MBueschelberger committed Sep 28, 2023
1 parent f815666 commit 49062a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osp/tools/mapping_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ def map_energies(root_cuds_object: Cuds) -> list:
return electronic_energy_values


def map_results(engine, root_cuds_object: Cuds) -> str:
def map_results(engine, root_cuds_object: Cuds, path:str=None) -> str:
"""
Add main results to the Cuds (Wrapper) object.
Expand Down Expand Up @@ -1760,7 +1760,7 @@ def map_results(engine, root_cuds_object: Cuds) -> str:
search_calculation = search.find_cuds_objects_by_oclass(
emmo.MesoscopicCalculation, root_cuds_object,
rel=cuba.relationship)
tarball = map_tarball(engine, search_calculation[0])
tarball = map_tarball(engine, search_calculation[0], path=path)

else:
raise_error(file=os.path.basename(__file__), function=map_results.__name__,
Expand Down

0 comments on commit 49062a8

Please sign in to comment.