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

Commit

Permalink
change model to id parameter (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaHutter authored Apr 19, 2022
1 parent 2bcc090 commit ee54cad
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit ee54cad

Please sign in to comment.