Clean up imports, ignore pandas warnings.
import argparse
import logging
-import sys
import shutil
+import sys
from datetime import datetime as dt
import pandas as pd
-import pudl
+
import src
-from src.util import load_settings, init_pudl_connection
-from src.params import DATA_PATHS
from src.generators import create_region_technology_clusters
from src.load_profiles import load_curves
+from src.params import DATA_PATHS
from src.transmission import agg_transmission_constraints
+from src.util import init_pudl_connection, load_settings
+if not sys.warnoptions:
+ import warnings
+ warnings.simplefilter("ignore")
def parse_command_line(argv):
"""
@@ -123,7 +126,5 @@ def main():
)
-
-
if __name__ == "__main__":
main()
