Showing 1 of 1 files from the diff.

@@ -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%
441.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