From 502012660c28687c36a1d4d91b91c0327e0b9cb5 Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen <34610298+mikkelkp@users.noreply.github.com> Date: Fri, 28 Jun 2024 10:55:18 +0200 Subject: [PATCH] fix(samples): Add project owner and recipe owner (#23) --- samples/run_jobs.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/samples/run_jobs.py b/samples/run_jobs.py index fb7c6ae..fdb4ef6 100644 --- a/samples/run_jobs.py +++ b/samples/run_jobs.py @@ -17,13 +17,14 @@ recipe_tag = os.environ['TAG'] host = os.environ['HOST'] -owner = 'pollination' +project_owner = 'ladybug-tools' project = 'abnt-nbr-15575-daylight' +recipe_owner = 'pollination' recipe_name = 'abnt-nbr-15575-daylight' api_client = ApiClient(host, api_key) -recipe = Recipe(owner, recipe_name, recipe_tag, client=api_client) -recipe.add_to_project(f'{owner}/{project}') +recipe = Recipe(recipe_owner, recipe_name, recipe_tag, client=api_client) +recipe.add_to_project(f'{project_owner}/{project}') # load recipe inputs for each sample run samples_path = Path(__file__).parent.resolve().joinpath('sample_runs.json') @@ -33,7 +34,7 @@ # create a new job datetime_now = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') name = f'Samples (Scheduled by GitHub workflow: {datetime_now})' -new_study = NewJob(owner, project, recipe, name=name, client=api_client) +new_study = NewJob(project_owner, project, recipe, name=name, client=api_client) # get all unique artifacts artifacts = set()