Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dates and links for models #104

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading