diff --git a/SCRC/data_uploading/processing_scripts/process_school_terms.R b/SCRC/data_uploading/processing_scripts/process_school_terms.R index d30bcf1..265c19d 100644 --- a/SCRC/data_uploading/processing_scripts/process_school_terms.R +++ b/SCRC/data_uploading/processing_scripts/process_school_terms.R @@ -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" @@ -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() { @@ -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) \ No newline at end of file +create_table(file=paste(version_number, "h5", sep="."), path="SCRC/pipeline_data/school_terms", component="school_terms", df=data) \ No newline at end of file diff --git a/SCRC/pipeline_data/metadata.yaml b/SCRC/pipeline_data/metadata.yaml index 6e3bc2e..3e77f96 100644 --- a/SCRC/pipeline_data/metadata.yaml +++ b/SCRC/pipeline_data/metadata.yaml @@ -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 diff --git a/SCRC/pipeline_data/school_terms/data.h5 b/SCRC/pipeline_data/school_terms/0.20200803.0.h5 similarity index 79% rename from SCRC/pipeline_data/school_terms/data.h5 rename to SCRC/pipeline_data/school_terms/0.20200803.0.h5 index 196967e..277d7c2 100644 Binary files a/SCRC/pipeline_data/school_terms/data.h5 and b/SCRC/pipeline_data/school_terms/0.20200803.0.h5 differ