Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cmutel committed Oct 10, 2023
1 parent 7631756 commit b2c57c6
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 35 deletions.
1 change: 0 additions & 1 deletion premise/activity_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
mapping between ``premise`` and ``ecoinvent`` terminology.
"""

import sys
from collections import defaultdict
from pathlib import Path
from typing import List, Union
Expand Down
3 changes: 0 additions & 3 deletions premise/cement.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
"""

import logging.config
from collections import defaultdict

import yaml

from .logger import create_logger
from .transformation import BaseTransformation, Dict, IAMDataCollection, List, np, ws

Expand Down
11 changes: 3 additions & 8 deletions premise/direct_air_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
"""

import copy
import logging.config
from pathlib import Path

import numpy as np
import wurst
import yaml

from .filesystem_constants import DATA_DIR
from .logger import create_logger

logger = create_logger("dac")


import numpy as np

from .transformation import (
BaseTransformation,
IAMDataCollection,
Expand All @@ -26,6 +19,8 @@
ws,
)

logger = create_logger("dac")

HEAT_SOURCES = DATA_DIR / "fuels" / "heat_sources_map.yml"


Expand Down
1 change: 0 additions & 1 deletion premise/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import re
from collections import defaultdict
from functools import lru_cache
from pprint import pprint

import wurst
import yaml
Expand Down
2 changes: 0 additions & 2 deletions premise/emissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
from GAINS.
"""

import logging.config
from functools import lru_cache
from pathlib import Path
from typing import Union

import numpy as np
Expand Down
3 changes: 1 addition & 2 deletions premise/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
import uuid
from collections import defaultdict
from functools import lru_cache
from multiprocessing import Pool as ProcessPool
from multiprocessing.pool import ThreadPool as Pool
from pathlib import Path
from typing import Any, Dict, List, Set, Tuple, Union
from typing import Any, Dict, List

import numpy as np
import pandas as pd
Expand Down
4 changes: 0 additions & 4 deletions premise/external_data_validation.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""
Validates datapackages that contain external scenario data.
"""

import sys
from pprint import pprint

import numpy as np
import pandas as pd
import yaml
Expand Down
2 changes: 0 additions & 2 deletions premise/fuels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"""

import copy
import logging.config
from functools import lru_cache
from pathlib import Path
from typing import Union

import wurst
Expand Down
1 change: 0 additions & 1 deletion premise/inventory_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import csv
import itertools
import sys
import uuid
from functools import lru_cache
from pathlib import Path
Expand Down
1 change: 0 additions & 1 deletion premise/logger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging.config
import multiprocessing
from pathlib import Path

import yaml
Expand Down
1 change: 0 additions & 1 deletion premise/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from openpyxl.utils import get_column_letter
from openpyxl.utils.dataframe import dataframe_to_rows
from openpyxl.worksheet.dimensions import ColumnDimension, DimensionHolder
from pandas._libs.parsers import ParserError
from pandas.errors import EmptyDataError

from . import __version__
Expand Down
3 changes: 0 additions & 3 deletions premise/steel.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
"""
Integrates projections regarding steel production.
"""
import logging.config
from pathlib import Path
from typing import Dict, List

import wurst
import yaml

from .data_collection import IAMDataCollection
from .logger import create_logger
Expand Down
7 changes: 1 addition & 6 deletions premise/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
from bw2io.importers.base_lci import LCIImporter
from country_converter import CountryConverter
from prettytable import ALL, PrettyTable
from wurst.linking import (
change_db_name,
check_duplicate_codes,
check_internal_linking,
link_internal,
)
from wurst.linking import change_db_name, check_internal_linking, link_internal
from wurst.searching import equals, get_many

from . import __version__
Expand Down

0 comments on commit b2c57c6

Please sign in to comment.