Skip to content

Commit

Permalink
Use school terms from processing in API
Browse files Browse the repository at this point in the history
  • Loading branch information
kzscisoft committed Aug 3, 2020
1 parent 3b7bfd9 commit 02b0803
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions SCRC/data_uploading/processing_scripts/process_school_terms.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ product_name <- file.path("schools",

tmp <- as.Date(date_accessed, format = "%Y-%m-%d")

version_number <- paste("0", gsub("-", "", tmp), "0" , sep = ".")
version_number <- paste(struct_version, gsub("-", "", tmp), dataset_version, sep = ".")

namespace <- "LSHTM"

Expand All @@ -33,12 +33,12 @@ product_path <- product_name

product_filename <- paste0(version_number, ".h5")

product_storageRootId <- new_storage_root(name = product_storageRoot,
root = "ftp://boydorr.gla.ac.uk/scrc/",
key = key)
#product_storageRootId <- new_storage_root(name = product_storageRoot,
# root = "ftp://boydorr.gla.ac.uk/scrc/",
# key = key)

namespaceId <- new_namespace(name = namespace,
key = key)
#namespaceId <- new_namespace(name = namespace,
# key = key)

retrieve_file_data <- function()
{
Expand All @@ -55,4 +55,4 @@ retrieve_file_data <- function()

data <- retrieve_file_data()

create_table(file="data_2.h5", path="SCRC/pipeline_data/school_terms", component="school_terms", df=data)
create_table(file=paste(version_number, "h5", sep="."), path="SCRC/pipeline_data/school_terms", component="school_terms", df=data)
2 changes: 1 addition & 1 deletion SCRC/pipeline_data/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
data_product : school_terms
component : school_terms
version : 1.0.0
filename : school_terms/data.h5
filename : school_terms/0.20200803.0.h5
-
data_product : intervention_rates
component : intervention_rates
Expand Down
Binary file not shown.

0 comments on commit 02b0803

Please sign in to comment.