Skip to content

Commit

Permalink
SG: Fix event file path so that it reads the path in the input file i…
Browse files Browse the repository at this point in the history
…f available
  • Loading branch information
sgavrilovic committed Aug 14, 2024
1 parent 7cc86dc commit 15a21a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/Workflow/whale/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,14 +1756,17 @@ def perform_regional_mapping(self, AIM_file_path, assetType, doParallel=True):
for input_ in reg_mapping_app.inputs:
if input_['id'] == 'assetFile':
input_['default'] = str(AIM_file_path)

# Get the event file path
eventFilePath = self.shared_data.get('RegionalEvent', {}).get('eventFilePath', self.reference_dir)

reg_mapping_app.inputs.append(
{
'id': 'filenameEVENTgrid',
'type': 'path',
'default': resolve_path(
self.shared_data['RegionalEvent']['eventFile'],
self.reference_dir,
eventFilePath,
),
}
)
Expand Down

0 comments on commit 15a21a1

Please sign in to comment.