From a2d6da7b420d742b89378381e6f5552e9148ef95 Mon Sep 17 00:00:00 2001 From: Nikhil Woodruff Date: Tue, 3 Sep 2024 09:47:52 +0100 Subject: [PATCH] Fix docs error --- docs/Home.py | 2 +- docs/{download.py => download_prerequisites.py} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/{download.py => download_prerequisites.py} (91%) diff --git a/docs/Home.py b/docs/Home.py index cabb3d7..d383608 100644 --- a/docs/Home.py +++ b/docs/Home.py @@ -1,5 +1,5 @@ import streamlit as st -from .download import download_data +from download_prerequisites import download_data download_data() diff --git a/docs/download.py b/docs/download_prerequisites.py similarity index 91% rename from docs/download.py rename to docs/download_prerequisites.py index c40a84b..d87565c 100644 --- a/docs/download.py +++ b/docs/download_prerequisites.py @@ -2,7 +2,7 @@ from policyengine_us_data.data_storage import STORAGE_FOLDER def download_data(): - if (not STORAGE_FOLDER / "enhanced_cps_2024.h5").exists(): + if not (STORAGE_FOLDER / "enhanced_cps_2024.h5").exists(): download( "PolicyEngine", "policyengine-us-data",