e2nIEE / pandapipes

@@ -54,7 +54,6 @@
Loading
54 54
                       "overwrite it, set 'overwrite' to True." % net_name)
55 55
    else:
56 56
        multinet['nets'][net_name] = net
57 -
        multinet.set_attributes(net)
58 57
59 58
60 59
def add_nets_to_multinet(multinet, overwrite=False, **networks):

@@ -45,36 +45,6 @@
Loading
45 45
            self.clear()
46 46
            self.update(**net.deepcopy())
47 47
48 -
        self._bus =[]
49 -
        self._line = []
50 -
51 -
        self._gas_junction = []
52 -
        self._gas_pipe = []
53 -
54 -
        # Unterscheidungsmöglichkeit zwischen Gas- und Wärmenetzen fehlt
55 -
        self._heat_junction = []
56 -
        self._heat_pipes = []
57 -
58 -
    def set_attributes(self, net):
59 -
            if isinstance(net, pandapowerNet):
60 -
                self._bus = net["bus"]
61 -
                self._line = net["line"]
62 -
            elif isinstance(net, pandapipesNet):
63 -
                self._gas_junction = net["junction"]
64 -
                self._gas_pipe = net["pipe"]
65 -
66 -
    def get_gas_junctions(self):
67 -
        return self._gas_junction
68 -
69 -
    def get_gas_pipes(self):
70 -
        return self._gas_pipe
71 -
72 -
    def get_buses(self):
73 -
        return self._bus
74 -
75 -
    def get_lines(self):
76 -
        return self._line
77 -
78 48
    def deepcopy(self):
79 49
        return copy.deepcopy(self)
80 50

@@ -307,7 +307,7 @@
Loading
307 307
308 308
def create_pipe(net, from_junction, to_junction, std_type, length_km, k_mm=1, loss_coefficient=0,
309 309
                sections=1, alpha_w_per_m2k=0., text_k=293, qext_w=0., name=None, index=None,
310 -
                geodata=None, in_service=True, type="pipe", max_v_m_per_s = 0.1, **kwargs):
310 +
                geodata=None, in_service=True, type="pipe", **kwargs):
311 311
    """
312 312
    Creates a pipe element in net["pipe"] from pipe parameters.
313 313
@@ -369,7 +369,7 @@
Loading
369 369
         "diameter_m": pipe_parameter["inner_diameter_mm"] / 1000, "k_mm": k_mm,
370 370
         "loss_coefficient": loss_coefficient, "alpha_w_per_m2k": alpha_w_per_m2k,
371 371
         "sections": sections, "in_service": bool(in_service), "type": type, "qext_w": qext_w,
372 -
         "text_k": text_k, "max_v_m_per_s": max_v_m_per_s}
372 +
         "text_k": text_k}
373 373
    _set_entries(net, "pipe", index, **v, **kwargs)
374 374
375 375
    if geodata is not None:
@@ -381,7 +381,7 @@
Loading
381 381
def create_pipe_from_parameters(net, from_junction, to_junction, length_km, diameter_m, k_mm=1,
382 382
                                loss_coefficient=0, sections=1, alpha_w_per_m2k=0., text_k=293,
383 383
                                qext_w=0., name=None, index=None, geodata=None, in_service=True,
384 -
                                type="pipe", max_v_m_per_s = 0.1, **kwargs):
384 +
                                type="pipe", **kwargs):
385 385
    """
386 386
    Creates a pipe element in net["pipe"] from pipe parameters.
387 387
@@ -440,7 +440,7 @@
Loading
440 440
         "std_type": None, "length_km": length_km, "diameter_m": diameter_m, "k_mm": k_mm,
441 441
         "loss_coefficient": loss_coefficient, "alpha_w_per_m2k": alpha_w_per_m2k,
442 442
         "sections": sections, "in_service": bool(in_service),
443 -
         "type": type, "qext_w": qext_w, "text_k": text_k, "max_v_m_per_s": max_v_m_per_s}
443 +
         "type": type, "qext_w": qext_w, "text_k": text_k}
444 444
    if 'std_type' in kwargs:
445 445
        raise UserWarning('you have defined a std_type, however, using this function you can only '
446 446
                          'create a pipe setting specific, individual parameters. If you want to '
@@ -962,7 +962,7 @@
Loading
962 962
def create_pipes_from_parameters(net, from_junctions, to_junctions, length_km, diameter_m, k_mm=1,
963 963
                                 loss_coefficient=0, sections=1, alpha_w_per_m2k=0., text_k=293,
964 964
                                 qext_w=0., name=None, index=None, geodata=None, in_service=True,
965 -
                                 type="pipe", v_m_per_s_max=1, **kwargs):
965 +
                                 type="pipe", **kwargs):
966 966
    """
967 967
    Convenience function for creating many pipes at once. Parameters 'from_junctions' and \
968 968
    'to_junctions' must be arrays of equal length. Other parameters may be either arrays of the \
@@ -1025,7 +1025,7 @@
Loading
1025 1025
               "std_type": None, "length_km": length_km, "diameter_m": diameter_m, "k_mm": k_mm,
1026 1026
               "loss_coefficient": loss_coefficient, "alpha_w_per_m2k": alpha_w_per_m2k,
1027 1027
               "sections": sections, "in_service": in_service, "type": type, "qext_w": qext_w,
1028 -
               "text_k": text_k, "v_m_per_s_max":v_m_per_s_max}
1028 +
               "text_k": text_k}
1029 1029
    _set_multiple_entries(net, "pipe", index, **entries, **kwargs)
1030 1030
1031 1031
    if geodata is not None:
Files Coverage
pandapipes 91.01%
setup.py 0.00%
Project Totals (74 files) 90.67%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading