Skip to content

Commit

Permalink
fix(samples): Add project owner and recipe owner (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Jun 28, 2024
1 parent 0323d53 commit 5020126
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions samples/run_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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()
Expand Down

0 comments on commit 5020126

Please sign in to comment.