<commit_before>from . import StationDingo
from dingo.core.network import TransformerDingo
from dingo.tools import config as cfg_dingo

from itertools import compress

class MVStationDingo(StationDingo):
    """
    Defines a MV station in DINGO
    -----------------------------
    """

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

    def set_operation_voltage_level(self):

        mv_station_v_level_operation = float(cfg_dingo.get('mv_routing_tech_constraints',
                                                           'mv_station_v_level_operation'))

        self.v_level_operation = mv_station_v_level_operation * self.grid.v_level

    def choose_transformers(self):
        """Chooses appropriate transformers for the MV sub-station

        Choice bases on voltage level (depends on load density), apparent power
        and general planning principles for MV distribution grids.<commit_msg>clean up stations.py<commit_after>from . import StationDingo
from dingo.core.network import TransformerDingo
from dingo.tools import config as cfg_dingo

from itertools import compress


class MVStationDingo(StationDingo):
    """
    Defines a MV station in DINGO
    -----------------------------
    """

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

    def set_operation_voltage_level(self):

        mv_station_v_level_operation = float(cfg_dingo.get('mv_routing_tech_constraints',
                                                           'mv_station_v_level_operation'))

        self.v_level_operation = mv_station_v_level_operation * self.grid.v_level

    def choose_transformers(self):
        """Chooses appropriate transformers for the MV sub-station

        Choice bases on voltage level (depends on load density), apparent power
        and general planning principles for MV distribution grids.
{'fraction_non_alphanumeric': 0.09485530546623794, 'fraction_numerical': 0.0, 'mean_word_length': 2.6393762183235867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '752146', 'n_tokens_mistral': 501, 'n_tokens_neox': 475, 'n_words': 131}