Skip to content

Commit

Permalink
Format python code with black 24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
berland committed Jan 26, 2024
1 parent 60edb03 commit d4192cb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions python/resdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
alternative fails, the loader will try the default load behaviour
before giving up completely.
"""

import ctypes as ct
import os.path
import sys
Expand Down
1 change: 1 addition & 0 deletions python/resdata/geometry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Simple package for working with 2D geometry.
"""

import resdata
from cwrap import Prototype

Expand Down
1 change: 1 addition & 0 deletions python/resdata/geometry/cpolyline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Create a polygon
"""

import ctypes
import os.path

Expand Down
1 change: 1 addition & 0 deletions python/resdata/geometry/cpolyline_collection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Create a polygon
"""

import ctypes

from cwrap import BaseCClass
Expand Down
1 change: 1 addition & 0 deletions python/resdata/gravimetry/rd_subsidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
different surveys. The implementation is a thin wrapper around the
rd_subsidence.c implementation in the resdata library.
"""

from cwrap import BaseCClass
from resdata import ResdataPrototype
from resdata.util.util import monkey_the_camel
Expand Down
1 change: 1 addition & 0 deletions python/resdata/grid/rd_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
implemented in the Grid class. The rd_grid module is a thin
wrapper around the rd_grid.c implementation from the resdata library.
"""

import ctypes

import warnings
Expand Down
1 change: 1 addition & 0 deletions python/resdata/grid/rd_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
When the selection process is complete the region instance can be
queried for the corresponding list of indices.
"""

from functools import wraps
import ctypes

Expand Down
1 change: 1 addition & 0 deletions python/resdata/rd_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
In addition to the enum definitions there are a few stateless
functions from rd_util.c which are not bound to any class type.
"""

from __future__ import absolute_import

import ctypes
Expand Down
1 change: 1 addition & 0 deletions python/resdata/resfile/fortio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
support passing of FortIO handles to the underlying C functions. A
more extensive wrapping of the fortio implementation would be easy.
"""

import ctypes
import os

Expand Down
1 change: 1 addition & 0 deletions python/resdata/resfile/rd_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
[1]: In particular for restart files, which do not have a special
RestartFile class, there is some specialized functionality.
"""

import ctypes
import datetime
import re
Expand Down
1 change: 0 additions & 1 deletion python/resdata/summary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
used as basis for queries on summary vectors.
"""


import resdata.util.util
import resdata.geometry

Expand Down
1 change: 1 addition & 0 deletions python/resdata/util/util/stringlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
return a normal python list of string objects, used in this way you
hardly need to notice that the StringList class is at play.
"""

from resdata import ResdataPrototype
from cwrap import BaseCClass

Expand Down
4 changes: 2 additions & 2 deletions python/tests/rd_tests/test_sum_equinor.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ def test_ix_case(self):
)
self.assertIsNotNone(eclipse_summary)

hwell_padder = (
lambda key: key if key.split(":")[-1] != "HWELL_PR" else key + "OD"
hwell_padder = lambda key: (
key if key.split(":")[-1] != "HWELL_PR" else key + "OD"
)
self.assertEqual(
intersect_summary.keys("WWCT*"),
Expand Down

0 comments on commit d4192cb

Please sign in to comment.