Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent a012cd6 commit 45ae672
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions for linting, docs, and testing."""

from __future__ import annotations

import argparse
Expand Down
1 change: 1 addition & 0 deletions src/bluebonnet/flow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Flow, pressure changes, and production from hydraulically fractured reservoirs."""

from __future__ import annotations

from bluebonnet.flow.flowproperties import (
Expand Down
1 change: 1 addition & 0 deletions src/bluebonnet/flow/flowproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
module includes structures for storing these pressure-dependent properties
in order to aid the reservoir simulators in the `reservoir` module.
"""

from __future__ import annotations

import copy
Expand Down
1 change: 1 addition & 0 deletions src/bluebonnet/fluids/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Uses common empirical correlations to get properties. These include density,
saturation pressure, viscosity, and the pseudopressure transform.
"""

from __future__ import annotations

from bluebonnet.fluids.fluid import Fluid, build_pvt_gas, pseudopressure
Expand Down
3 changes: 2 additions & 1 deletion src/bluebonnet/fluids/gas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Gas pvt properties, using Dranchuk and Abou-Kassem's correlations."""

from __future__ import annotations

import math
Expand Down Expand Up @@ -165,7 +166,7 @@ def z_factor_hallyarbrough(pressure: float, temperature: float) -> float:
References
----------
`Hall-Yarbrough estimation <https://wiki.whitson.com/eos/eos_models/zfactor/index.html#hall-yarbrough-estimation-of-gas-z-factor>`_
""" # noqa: E501
"""
t = 1 / temperature
y = 0.001
fdum = 1
Expand Down
12 changes: 3 additions & 9 deletions src/bluebonnet/fluids/water.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""PVT and viscosity for water from the correlations provided by McCain."""

from __future__ import annotations

import numpy as np
Expand Down Expand Up @@ -150,12 +151,7 @@ def viscosity_water_McCain(
>>> viscosity_water_McCain(400, 3000, 15)
0.2627774655403418
"""
A = (
109.574
- 8.40564 * salinity
+ 0.313314 * salinity**2
+ 8.72213e-3 * salinity**3
)
A = 109.574 - 8.40564 * salinity + 0.313314 * salinity**2 + 8.72213e-3 * salinity**3
B = (
1.12166
- 2.63951e-2 * salinity
Expand All @@ -164,8 +160,6 @@ def viscosity_water_McCain(
- 1.55586e-6 * salinity**4
)
mu_water = (
A
* temperature**-B
* (0.9994 + 4.0295e-5 * pressure + 3.1062e-9 * pressure**2)
A * temperature**-B * (0.9994 + 4.0295e-5 * pressure + 3.1062e-9 * pressure**2)
)
return mu_water
1 change: 1 addition & 0 deletions src/bluebonnet/forecast/forecast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fit and forecast production from hydrofractured reservoirs."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions src/bluebonnet/forecast/forecast_pressure.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Forecast when bottomhole/fracface pressure is known and varying."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions src/bluebonnet/plotting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Ease plotting production and fluid flow information."""

from __future__ import annotations

from typing import Any, Union
Expand Down
1 change: 1 addition & 0 deletions tests/flow/test_properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the flowproperties module."""

from __future__ import annotations

from copy import copy
Expand Down
1 change: 1 addition & 0 deletions tests/flow/test_reservoir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the reservoir module."""

from __future__ import annotations

from itertools import product
Expand Down
1 change: 1 addition & 0 deletions tests/fluids/test_fluid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the fluid module."""

from __future__ import annotations

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/fluids/test_gas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the gas module."""

from __future__ import annotations

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/fluids/test_oil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the oil module."""

from __future__ import annotations

import math
Expand Down
1 change: 1 addition & 0 deletions tests/fluids/test_water.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define a suite a tests for the gas module."""

from __future__ import annotations

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/forecast/test_forecast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test fitting and forecasting production."""

from __future__ import annotations

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_bluebonnet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Smoke test that bluebonnet imports."""

from __future__ import annotations

import bluebonnet
Expand Down

0 comments on commit 45ae672

Please sign in to comment.