Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

change model to id parameter #161

Merged
merged 1 commit into from
Apr 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/openeo_processes/cubes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2142,11 +2142,11 @@ def load_ml_model():
class LoadMLModel:

@staticmethod
def exec_num(model, input_filepath = 'path'):
date = os.listdir(f'{input_filepath}/jobs/{model}')
def exec_num(id, input_filepath = 'path'):
date = os.listdir(f'{input_filepath}/jobs/{id}')
if len(date) > 0:
date = date[0]
filepath = f'{input_filepath}/jobs/{model}/{date}/result/out_model.json'
filepath = f'{input_filepath}/jobs/{id}/{date}/result/out_model.json'
model_xgb = xgb.Booster()
model_xgb.load_model(filepath)
return model_xgb
Expand Down