Skip to content

Commit

Permalink
chore: clean up doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
redfrexx committed May 4, 2024
1 parent bb07633 commit 6c8273f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions co2calculator/data_handlers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Reader class to retrieve co2 factors from database"""
import warnings
"""Data handler class to handle and validate emission factors from csv file"""

from pathlib import Path
import pandas as pd
from .exceptions import ConversionFactorNotFound
Expand All @@ -28,7 +28,7 @@ def get(self, parameters: dict):
selected_factors = self.emission_factors

for k, v in parameters.items():
# shortterm hack to make it work until co2 factors are updated
# TODO: shortterm hack to make it work until occupancy is removed from emission factors
if not isinstance(v, int):
v = str(v.value)
if v is None or k not in self.column_names:
Expand Down
2 changes: 1 addition & 1 deletion co2calculator/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""__description__"""
"""Exceptions for the co2calculator package"""

__author__ = "Christina Ludwig, GIScience Research Group, Heidelberg University"
__email__ = "christina.ludwig@uni-heidelberg.de"
Expand Down
4 changes: 2 additions & 2 deletions co2calculator/parameters.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""__description__"""
"""Base classes to handle and validate parameters for emission calculations"""

from pydantic import BaseModel, validator, root_validator
from pydantic import BaseModel, validator
from .constants import (
TransportationMode,
Size,
Expand Down

0 comments on commit 6c8273f

Please sign in to comment.