Showing 2 of 29 files from the diff.
Other files ignored by Codecov

@@ -1264,7 +1264,8 @@
Loading
1264 1264
def create_fluid_from_lib(net, name, overwrite=True):
1265 1265
    """
1266 1266
    Creates a fluid from library (if there is an entry) and sets net["fluid"] to this value.
1267 -
    Currently existing fluids in the library are: "hgas", "lgas", "hydrogen", "water", "air".
1267 +
    Currently existing fluids in the library are: "hgas", "lgas", "hydrogen", "methane", "water",
1268 +
    "air".
1268 1269
1269 1270
    :param net: The net for which this fluid should be created
1270 1271
    :type net: pandapipesNet

@@ -453,6 +453,8 @@
Loading
453 453
        raise AttributeError("Fluid '%s' not found in the fluid library. It might not be "
454 454
                             "implemented yet." % fluid)
455 455
456 +
    phase = "liquid" if fluid in liquids else "gas"
457 +
456 458
    density = interextra_property("density")
457 459
    viscosity = interextra_property("viscosity")
458 460
    heat_capacity = interextra_property("heat_capacity")
@@ -460,11 +462,17 @@
Loading
460 462
    der_compr = constant_property("der_compressibility")
461 463
    compr = linear_property("compressibility")
462 464
463 -
    phase = "liquid" if fluid in liquids else "gas"
464 -
    return Fluid(fluid, phase, density=density, viscosity=viscosity, heat_capacity=heat_capacity,
465 -
                 molar_mass=molar_mass,
466 -
                 compressibility=compr, der_compressibility=der_compr)
467 -
465 +
    if (phase == 'gas') & (fluid != 'air'):
466 +
        lhv = constant_property("lower_heating_value")
467 +
        hhv = constant_property("higher_heating_value")
468 +
469 +
        return Fluid(fluid, phase, density=density, viscosity=viscosity,
470 +
                     heat_capacity=heat_capacity, molar_mass=molar_mass,
471 +
                     compressibility=compr, der_compressibility=der_compr, lhv=lhv, hhv=hhv)
472 +
    else:
473 +
        return Fluid(fluid, phase, density=density, viscosity=viscosity,
474 +
                     heat_capacity=heat_capacity, molar_mass=molar_mass, compressibility=compr,
475 +
                     der_compressibility=der_compr)
468 476
469 477
def get_fluid(net):
470 478
    """
Files Coverage
pandapipes 91.70%
Project Totals (62 files) 91.70%
443.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
443.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
449.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

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