Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into musicode
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislavsulc committed Dec 3, 2023
2 parents f189b0c + d6b2496 commit 340234a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mupifDB/workflowmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ def mapOutput(app, eid, name, obj_id, data_id, time, object_type, onto_path=None
field = app.get(mupif.DataID[data_id], time, obj_id)
with tempfile.TemporaryDirectory(dir="/tmp", prefix='mupifDB') as tempDir:
full_path = tempDir + "/file.h5"
field.toHdf5(full_path)
field.toHdf5(fileName=full_path)
fileID = None
with open(full_path, 'rb') as f:
fileID = restApiControl.uploadBinaryFile(f)
Expand Down Expand Up @@ -1030,7 +1030,7 @@ def _getGrantaOutput(app, eid, name, obj_id, data_id, time, object_type):
field = app.get(mupif.DataID[data_id], time, obj_id)
with tempfile.TemporaryDirectory(dir="/tmp", prefix='mupifDB') as tempDir:
full_path = tempDir + "/file.h5"
field.toHdf5(full_path)
field.toHdf5(fileName=full_path)
fileID = None
with open(full_path, 'rb') as f:
fileID = restApiControl.uploadBinaryFile(f)
Expand Down

0 comments on commit 340234a

Please sign in to comment.