Skip to content

Commit

Permalink
Closes #2386
Browse files Browse the repository at this point in the history
  • Loading branch information
alfoa committed Oct 21, 2024
1 parent 515c65a commit d2f4ec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ravenframework/Models/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ def evaluateSample(self, myInput, samplerType, kwargs):
sampleDirectory = os.path.join(os.getcwd(),metaData['subDirectory'])
localenv = dict(os.environ)
localenv['PWD'] = str(sampleDirectory)
os.makedirs(os.path.dirname(os.path.join(sampleDirectory,codeLogFile)), exist_ok=True)
outFileObject = open(os.path.join(sampleDirectory,codeLogFile), 'w', bufferSize)

found = False
Expand Down
6 changes: 6 additions & 0 deletions ravenframework/Steps/MultiRun.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ def _localTakeAstepRun(self, inDictionary):
# END while loop that runs the step iterations (collection and submission-for-DET)
# if any collected runs failed, let the sampler treat them appropriately, and any other closing-out actions
sampler.finalizeSampler(self.failedRuns)
for myLambda, outIndex in self._outputCollectionLambda:
if isinstance(outputs[outIndex], OutStreamEntity):
myLambda([None,outputs[outIndex]])
self.raiseAMessage(f'Just collected job {finishedJob.identifier} and sent to output "{inDictionary["Output"][outIndex].name}"')



def _addNewRuns(self, sampler, model, inputs, outputs, jobHandler, inDictionary, verbose=True):
"""
Expand Down

0 comments on commit d2f4ec3

Please sign in to comment.