Skip to content

Commit

Permalink
Fix/1135 model settings conf (#1139)
Browse files Browse the repository at this point in the history
* Remove the conf variable MODEL_SETTINGS_FILE from run params

* Fix removal of MODEL_SETTINGS_FILE
  • Loading branch information
sambles committed Nov 19, 2024
1 parent e743ead commit 10b907c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/model_execution_worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,6 @@ def generate_input(self,
ri_scope_file = filestore.get(scope_file, oasis_files_dir)
lookup_settings_file = filestore.get(settings_file, oasis_files_dir)

model_settings_fp = settings.get('worker', 'MODEL_SETTINGS_FILE', fallback='')
model_settings_file = model_settings_fp if model_settings_fp and os.path.isfile(model_settings_fp) else None

task_params = {
'oasis_files_dir': oasis_files_dir,
'oed_location_csv': location_file,
Expand All @@ -423,7 +420,6 @@ def generate_input(self,
'oed_scope_csv': ri_scope_file,
'lookup_complex_config_json': lookup_settings_file,
'analysis_settings_json': lookup_settings_file,
'model_settings_json': model_settings_file,
}

if complex_data_files:
Expand Down

0 comments on commit 10b907c

Please sign in to comment.