Skip to content

Commit

Permalink
Merge pull request #104 from addelany/main
Browse files Browse the repository at this point in the history
fix dates and links for models
  • Loading branch information
addelany authored Jul 18, 2024
2 parents 984bab7 + d3de66d commit f217812
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions R/build_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ build_model <- function(model_id,
#variables_reformat <- as.list(var_values)
site_reformat <- paste(site_values, collapse = ", ")

## manipulate dates to match STAC format
start_date <- paste0(start_date,"T00:00:00Z")
end_date <- paste0(end_date,"T00:00:00Z")


aws_asset_link <- paste0('"',"s3://anonymous@",
aws_download_path,
"/project_id=", config$project_id,
Expand Down
3 changes: 2 additions & 1 deletion R/generate_authors.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ generate_authors <- function(model, metadata_table){

}else if (model_info$`Can we publicly list your name and email as part of the model metadata?` == 'Yes'){

url_info <- model_info$`Contact email`
#url_info <- model_info$`Contact email`
url_info <- model_info$`Web link to model code`
name_info <- model_info$`Contact name`

x <- list(list('url' = url_info,
Expand Down

0 comments on commit f217812

Please sign in to comment.