diff --git a/pvliveconsumer/__init__.py b/pvliveconsumer/__init__.py index edcee56..7206dfe 100644 --- a/pvliveconsumer/__init__.py +++ b/pvliveconsumer/__init__.py @@ -1,2 +1,3 @@ """ Pv Consumer""" + __version__ = "1.2.4" diff --git a/pvliveconsumer/gsps.py b/pvliveconsumer/gsps.py index 8592fe0..9d97633 100644 --- a/pvliveconsumer/gsps.py +++ b/pvliveconsumer/gsps.py @@ -1,4 +1,5 @@ """ GSP functions """ + import logging from datetime import datetime, timedelta, timezone from typing import List, Optional diff --git a/pvliveconsumer/nightime.py b/pvliveconsumer/nightime.py index b046926..61aafc3 100644 --- a/pvliveconsumer/nightime.py +++ b/pvliveconsumer/nightime.py @@ -1,4 +1,5 @@ """ Add zeros to nightime """ + import logging import os from datetime import datetime, timedelta diff --git a/pvliveconsumer/time.py b/pvliveconsumer/time.py index 0d8c38f..8b2c6e0 100644 --- a/pvliveconsumer/time.py +++ b/pvliveconsumer/time.py @@ -1,4 +1,5 @@ """ Time helper functions """ + import logging from datetime import datetime, timezone diff --git a/scripts/gsp_details.py b/scripts/gsp_details.py index 8de87ff..639c614 100644 --- a/scripts/gsp_details.py +++ b/scripts/gsp_details.py @@ -7,7 +7,6 @@ 4. update database """ - import json from datetime import datetime, timezone diff --git a/scripts/gsp_name_update/merge_labels.py b/scripts/gsp_name_update/merge_labels.py index 02c5b62..a3b684b 100644 --- a/scripts/gsp_name_update/merge_labels.py +++ b/scripts/gsp_name_update/merge_labels.py @@ -1,4 +1,5 @@ """ Merge labels """ + # import the files import pandas as pd diff --git a/scripts/gsp_name_update/new_labels.py b/scripts/gsp_name_update/new_labels.py index 956226a..294a011 100644 --- a/scripts/gsp_name_update/new_labels.py +++ b/scripts/gsp_name_update/new_labels.py @@ -1,4 +1,5 @@ """ New lables for gsps """ + # get the # or load file using [this](https://www.geeksforgeeks.org/read-json-file-using-python/) diff --git a/scripts/gsp_name_update/update_region_name.py b/scripts/gsp_name_update/update_region_name.py index 9352427..09d9a96 100644 --- a/scripts/gsp_name_update/update_region_name.py +++ b/scripts/gsp_name_update/update_region_name.py @@ -5,7 +5,6 @@ 2. update database """ - import json import os.path diff --git a/scripts/v3_to_v4/data/get_data.py b/scripts/v3_to_v4/data/get_data.py index b4a8311..28ca6ad 100644 --- a/scripts/v3_to_v4/data/get_data.py +++ b/scripts/v3_to_v4/data/get_data.py @@ -1,4 +1,5 @@ """ Get GSP regions from National Grid API""" + from urllib.request import urlopen import geopandas as gpd diff --git a/scripts/v3_to_v4/update_installed_capacity.py b/scripts/v3_to_v4/update_installed_capacity.py index 9d4ce2c..b78ccde 100644 --- a/scripts/v3_to_v4/update_installed_capacity.py +++ b/scripts/v3_to_v4/update_installed_capacity.py @@ -2,6 +2,7 @@ We now do this in the app, so we dont need to run this anymore """ + import json import os diff --git a/setup.py b/setup.py index 167987e..6fef414 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup file for pvliveconsumer package.""" + from pathlib import Path from setuptools import find_packages, setup