diff --git a/.renku/workflow/b8aae4992da54f598cd745a0ba9e7af6.cwl b/.renku/workflow/b8aae4992da54f598cd745a0ba9e7af6.cwl new file mode 100644 index 0000000000000000000000000000000000000000..eafaad35cba09d933087bc589d45c9bef3a35098 --- /dev/null +++ b/.renku/workflow/b8aae4992da54f598cd745a0ba9e7af6.cwl @@ -0,0 +1,120 @@ +class: Workflow +cwlVersion: v1.0 +hints: [] +inputs: + input_1: + default: states-daily.json + streamable: false + type: string + input_2: + default: states-metadata.json + streamable: false + type: string + input_3: + default: out_folder + streamable: false + type: string + input_4: + default: data/covidtracking + streamable: false + type: string + input_5: + default: + class: File + path: ../../notebooks/process/download-covidtracking-data.ipynb + streamable: false + type: File + input_6: + default: runs/download-covidtracking-data.runs.ipynb + streamable: false + type: string +outputs: + output_2: + outputSource: step_3/output_0 + streamable: false + type: File + output_3: + outputSource: step_3/output_1 + streamable: false + type: Directory +requirements: [] +steps: + step_1: + in: + filename: input_1 + input_directory: step_3/output_1 + out: + - output_file + run: + arguments: [] + baseCommand: + - 'true' + class: CommandLineTool + cwlVersion: v1.0 + hints: [] + inputs: + filename: + default: states-daily.json + streamable: false + type: string + input_directory: + streamable: false + type: Directory + outputs: + output_file: + outputBinding: + glob: $(inputs.filename) + streamable: false + type: File + permanentFailCodes: [] + requirements: + - &id001 + class: InlineJavascriptRequirement + - &id002 + class: InitialWorkDirRequirement + listing: $(inputs.input_directory.listing) + successCodes: [] + temporaryFailCodes: [] + step_2: + in: + filename: input_2 + input_directory: step_3/output_1 + out: + - output_file + run: + arguments: [] + baseCommand: + - 'true' + class: CommandLineTool + cwlVersion: v1.0 + hints: [] + inputs: + filename: + default: states-metadata.json + streamable: false + type: string + input_directory: + streamable: false + type: Directory + outputs: + output_file: + outputBinding: + glob: $(inputs.filename) + streamable: false + type: File + permanentFailCodes: [] + requirements: + - *id001 + - *id002 + successCodes: [] + temporaryFailCodes: [] + step_3: + in: + input_1: input_3 + input_2: input_4 + input_3: input_5 + input_4: input_6 + out: + - output_0 + - output_1 + run: ff5f474d38144c5d882c0036bd1059c2_papermill.cwl diff --git a/data/covidtracking/states-daily.json b/data/covidtracking/states-daily.json index 70b3261901cd75e0d3ed45d069399c0d0158a3cd..3b8367f5b9aca6f2044c5a5ac677a2d5e176abea 100644 --- a/data/covidtracking/states-daily.json +++ b/data/covidtracking/states-daily.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c3c20afab79ee8a58c86d9e5e874ece8d14ade025471f38b055ce2fbe9e7a19 -size 134255 +oid sha256:cf9f11314c54abdddbb58fc07a2df986bb85d68437223dbe1052203c2505a9ca +size 142982 diff --git a/data/covidtracking/states-metadata.json b/data/covidtracking/states-metadata.json index e1e43bbd54952f47853b1e9542c150f5cd3f0cca..d0bee96e2baf67ae73b9f2103ca757df8509fd1f 100644 --- a/data/covidtracking/states-metadata.json +++ b/data/covidtracking/states-metadata.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f58c89f6e95859ad0e56742374bd2aa45e76b2e2e13b3a657066459ccd619c4 -size 25781 +oid sha256:e66567f0258fc7582c4a18e8a1aef3a27182f902aa94121222468c8504ec830f +size 25452 diff --git a/runs/download-covidtracking-data.runs.ipynb b/runs/download-covidtracking-data.runs.ipynb index 6eadb6a64498ea6dfa0dd37e5b33ed4114f1b2fb..158c4445193789ec1ef307b85c72ca0f68c5399f 100644 --- a/runs/download-covidtracking-data.runs.ipynb +++ b/runs/download-covidtracking-data.runs.ipynb @@ -5,10 +5,10 @@ "execution_count": 1, "metadata": { "papermill": { - "duration": 0.527885, - "end_time": "2020-03-22T08:22:00.825645", + "duration": 2.276469, + "end_time": "2020-03-23T08:22:22.453561", "exception": false, - "start_time": "2020-03-22T08:22:00.297760", + "start_time": "2020-03-23T08:22:20.177092", "status": "completed" }, "tags": [] @@ -25,10 +25,10 @@ "execution_count": 2, "metadata": { "papermill": { - "duration": 0.016824, - "end_time": "2020-03-22T08:22:00.852469", + "duration": 0.020852, + "end_time": "2020-03-23T08:22:22.488968", "exception": false, - "start_time": "2020-03-22T08:22:00.835645", + "start_time": "2020-03-23T08:22:22.468116", "status": "completed" }, "tags": [ @@ -46,10 +46,10 @@ "execution_count": 3, "metadata": { "papermill": { - "duration": 0.018322, - "end_time": "2020-03-22T08:22:00.878621", + "duration": 0.02465, + "end_time": "2020-03-23T08:22:22.522182", "exception": false, - "start_time": "2020-03-22T08:22:00.860299", + "start_time": "2020-03-23T08:22:22.497532", "status": "completed" }, "tags": [ @@ -59,7 +59,7 @@ "outputs": [], "source": [ "# Parameters\n", - "PAPERMILL_INPUT_PATH = \"/tmp/mhe9_fx8/notebooks/process/download-covidtracking-data.ipynb\"\n", + "PAPERMILL_INPUT_PATH = \"/tmp/iocfjzox/notebooks/process/download-covidtracking-data.ipynb\"\n", "PAPERMILL_OUTPUT_PATH = \"runs/download-covidtracking-data.runs.ipynb\"\n", "out_folder = \"data/covidtracking\"\n" ] @@ -68,10 +68,10 @@ "cell_type": "markdown", "metadata": { "papermill": { - "duration": 0.01311, - "end_time": "2020-03-22T08:22:00.900103", + "duration": 0.005919, + "end_time": "2020-03-23T08:22:22.536991", "exception": false, - "start_time": "2020-03-22T08:22:00.886993", + "start_time": "2020-03-23T08:22:22.531072", "status": "completed" }, "tags": [] @@ -87,10 +87,10 @@ "execution_count": 4, "metadata": { "papermill": { - "duration": 1.439286, - "end_time": "2020-03-22T08:22:02.347578", + "duration": 0.683247, + "end_time": "2020-03-23T08:22:23.226480", "exception": false, - "start_time": "2020-03-22T08:22:00.908292", + "start_time": "2020-03-23T08:22:22.543233", "status": "completed" }, "tags": [] @@ -107,10 +107,10 @@ "execution_count": 5, "metadata": { "papermill": { - "duration": 0.018345, - "end_time": "2020-03-22T08:22:02.374606", + "duration": 0.02999, + "end_time": "2020-03-23T08:22:23.270771", "exception": false, - "start_time": "2020-03-22T08:22:02.356261", + "start_time": "2020-03-23T08:22:23.240781", "status": "completed" }, "tags": [] @@ -129,10 +129,10 @@ "execution_count": 6, "metadata": { "papermill": { - "duration": 0.064418, - "end_time": "2020-03-22T08:22:02.448313", + "duration": 0.075074, + "end_time": "2020-03-23T08:22:23.356315", "exception": false, - "start_time": "2020-03-22T08:22:02.383895", + "start_time": "2020-03-23T08:22:23.281241", "status": "completed" }, "tags": [] @@ -239,10 +239,10 @@ "cell_type": "markdown", "metadata": { "papermill": { - "duration": 0.007933, - "end_time": "2020-03-22T08:22:02.465634", + "duration": 0.008205, + "end_time": "2020-03-23T08:22:23.377337", "exception": false, - "start_time": "2020-03-22T08:22:02.457701", + "start_time": "2020-03-23T08:22:23.369132", "status": "completed" }, "tags": [] @@ -256,10 +256,10 @@ "execution_count": 7, "metadata": { "papermill": { - "duration": 0.840779, - "end_time": "2020-03-22T08:22:03.314317", + "duration": 0.216238, + "end_time": "2020-03-23T08:22:23.599867", "exception": false, - "start_time": "2020-03-22T08:22:02.473538", + "start_time": "2020-03-23T08:22:23.383629", "status": "completed" }, "tags": [] @@ -276,10 +276,10 @@ "execution_count": 8, "metadata": { "papermill": { - "duration": 0.021605, - "end_time": "2020-03-22T08:22:03.348671", + "duration": 0.030954, + "end_time": "2020-03-23T08:22:23.651293", "exception": false, - "start_time": "2020-03-22T08:22:03.327066", + "start_time": "2020-03-23T08:22:23.620339", "status": "completed" }, "tags": [] @@ -298,10 +298,10 @@ "execution_count": 9, "metadata": { "papermill": { - "duration": 0.055687, - "end_time": "2020-03-22T08:22:03.415289", + "duration": 0.066839, + "end_time": "2020-03-23T08:22:23.732970", "exception": false, - "start_time": "2020-03-22T08:22:03.359602", + "start_time": "2020-03-23T08:22:23.666131", "status": "completed" }, "tags": [] @@ -311,7 +311,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "869 data points\n" + "925 data points\n" ] }, { @@ -349,27 +349,27 @@ " <tbody>\n", " <tr>\n", " <th>0</th>\n", - " <td>20200321</td>\n", + " <td>20200322</td>\n", " <td>AK</td>\n", - " <td>14.0</td>\n", - " <td>758.0</td>\n", + " <td>22.0</td>\n", + " <td>946.0</td>\n", " <td>NaN</td>\n", " <td>0.0</td>\n", " <td>NaN</td>\n", - " <td>772</td>\n", - " <td>2020-03-21T20:00:00Z</td>\n", + " <td>968</td>\n", + " <td>2020-03-22T20:00:00Z</td>\n", " </tr>\n", " <tr>\n", " <th>1</th>\n", - " <td>20200321</td>\n", + " <td>20200322</td>\n", " <td>AL</td>\n", - " <td>124.0</td>\n", - " <td>28.0</td>\n", + " <td>138.0</td>\n", + " <td>1464.0</td>\n", " <td>NaN</td>\n", " <td>NaN</td>\n", " <td>0.0</td>\n", - " <td>152</td>\n", - " <td>2020-03-21T20:00:00Z</td>\n", + " <td>1602</td>\n", + " <td>2020-03-22T20:00:00Z</td>\n", " </tr>\n", " </tbody>\n", "</table>\n", @@ -377,12 +377,12 @@ ], "text/plain": [ " date state positive negative pending hospitalized death total \\\n", - "0 20200321 AK 14.0 758.0 NaN 0.0 NaN 772 \n", - "1 20200321 AL 124.0 28.0 NaN NaN 0.0 152 \n", + "0 20200322 AK 22.0 946.0 NaN 0.0 NaN 968 \n", + "1 20200322 AL 138.0 1464.0 NaN NaN 0.0 1602 \n", "\n", " dateChecked \n", - "0 2020-03-21T20:00:00Z \n", - "1 2020-03-21T20:00:00Z " + "0 2020-03-22T20:00:00Z \n", + "1 2020-03-22T20:00:00Z " ] }, "execution_count": 9, @@ -416,18 +416,18 @@ "version": "3.7.3" }, "papermill": { - "duration": 4.297689, - "end_time": "2020-03-22T08:22:03.739739", + "duration": 4.883343, + "end_time": "2020-03-23T08:22:24.072161", "environment_variables": {}, "exception": null, - "input_path": "/tmp/mhe9_fx8/notebooks/process/download-covidtracking-data.ipynb", + "input_path": "/tmp/iocfjzox/notebooks/process/download-covidtracking-data.ipynb", "output_path": "runs/download-covidtracking-data.runs.ipynb", "parameters": { - "PAPERMILL_INPUT_PATH": "/tmp/mhe9_fx8/notebooks/process/download-covidtracking-data.ipynb", + "PAPERMILL_INPUT_PATH": "/tmp/iocfjzox/notebooks/process/download-covidtracking-data.ipynb", "PAPERMILL_OUTPUT_PATH": "runs/download-covidtracking-data.runs.ipynb", "out_folder": "data/covidtracking" }, - "start_time": "2020-03-22T08:21:59.442050", + "start_time": "2020-03-23T08:22:19.188818", "version": "1.1.0" } },