Skip to content

Commit

Permalink
Merge pull request #35 from addelany/main
Browse files Browse the repository at this point in the history
add model code link
  • Loading branch information
addelany authored Nov 13, 2023
2 parents 43619e0 + 61d5242 commit 1d514ab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions R/build_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ build_model <- function(model_id,
thumbnail_image_name,
table_schema,
table_description,
full_var_df) {
full_var_df,
code_web_link) {


preset_keywords <- list("Forecasting", config$project_id)
Expand Down Expand Up @@ -117,7 +118,13 @@ build_model <- function(model_id,
"href" = paste0(model_id,'.json'),
"type"= "application/json",
"title"= "Model Forecast"
)),
),
list(
"rel"= "item",
"href" = code_web_link,
"type"= "text/html",
"title"= "Link for Model Code"
)),
"assets"= stac4cast::generate_model_assets(full_var_df, aws_download_path)#,
#pull_images(theme_id,model_id,thumbnail_image_name)
)
Expand Down

0 comments on commit 1d514ab

Please sign in to comment.