Skip to content

Commit

Permalink
Blacken with black 24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Feb 5, 2024
1 parent d12ea99 commit e207ce7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions res2df/nnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Extract non-neighbour connection (NNC) information from reservoir
simulator :term:`output files <output file>`.
"""

import argparse
import datetime
import logging
Expand Down
6 changes: 3 additions & 3 deletions res2df/rft.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ def process_seg_topology(seg_data: pd.DataFrame) -> pd.DataFrame:

# We also want to flag the segment that is upstream a junction,
merged["JUNCTION_downstream"] = False
merged.loc[
merged[merged["JUNCTION"]]["SEGIDX_upstream"], "JUNCTION_downstream"
] = True
merged.loc[merged[merged["JUNCTION"]]["SEGIDX_upstream"], "JUNCTION_downstream"] = (
True
)

return merged

Expand Down
1 change: 1 addition & 0 deletions res2df/satfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
TABDIMS or to supply the satnumcount directly to avoid possible bugs.
"""

import argparse
import logging
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions res2df/summary.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide a two-way Pandas DataFrame interface to Eclipse summary data (UNSMRY)"""

import argparse
import ctypes

Expand Down
1 change: 1 addition & 0 deletions res2df/vfp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Module with interface for res2df to VFPPROD and VFPINJ
keywords in Eclipse.
"""

from ._vfp import ( # noqa F:401
basic_data,
basic_data2df,
Expand Down
1 change: 1 addition & 0 deletions tests/test_grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test module for res2df.grid"""

import datetime
import os
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions tests/test_gruptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def test_dict2treelib_deprecated():
FIELDB
└── OPX
""",
)
),
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
],
)
Expand Down Expand Up @@ -378,7 +378,7 @@ def test_multiple_roots():
pytest.param(
pd.DataFrame([{"PARENT": "A"}]),
[{}],
marks=pytest.mark.xfail(raises=KeyError)
marks=pytest.mark.xfail(raises=KeyError),
# "CHILD" is also required
),
(pd.DataFrame([{"PARENT": "A", "CHILD": "B"}]), [{"A": {"B": {}}}]),
Expand Down
1 change: 1 addition & 0 deletions tests/test_inferdims.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test module for satfunc2df"""

import re

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check that res2df's submodules are always imported"""

import sys

# This file tests what happens when we do this import:
Expand Down
1 change: 1 addition & 0 deletions tests/test_rft.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test module for rft"""

import datetime
import os
import random
Expand Down

0 comments on commit e207ce7

Please sign in to comment.