res2df 1.3.6__py3-none-any.whl → 1.3.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- res2df/grid.py +5 -7
- res2df/nnc.py +4 -3
- res2df/version.py +16 -3
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/METADATA +1 -1
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/RECORD +9 -9
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/WHEEL +0 -0
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/entry_points.txt +0 -0
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/licenses/LICENSE +0 -0
- {res2df-1.3.6.dist-info → res2df-1.3.7.dist-info}/top_level.txt +0 -0
res2df/grid.py
CHANGED
|
@@ -438,13 +438,12 @@ def init2df(
|
|
|
438
438
|
usevectors = []
|
|
439
439
|
include_porv = False
|
|
440
440
|
for vec in init.headers:
|
|
441
|
-
if vec[
|
|
441
|
+
if vec[0] == "PORV" and any(fnmatch.fnmatch("PORV", key) for key in vectors):
|
|
442
|
+
include_porv = True
|
|
443
|
+
elif vec[1] == egrid.getNumActive() and any(
|
|
442
444
|
fnmatch.fnmatch(vec[0], key) for key in vectors
|
|
443
445
|
):
|
|
444
446
|
usevectors.append(vec[0])
|
|
445
|
-
if vec[0] == "PORV" and any(fnmatch.fnmatch("PORV", key) for key in vectors):
|
|
446
|
-
include_porv = True
|
|
447
|
-
|
|
448
447
|
if usevectors:
|
|
449
448
|
init_df = pd.DataFrame(
|
|
450
449
|
columns=usevectors,
|
|
@@ -465,8 +464,6 @@ def init2df(
|
|
|
465
464
|
else:
|
|
466
465
|
init_df = pd.DataFrame() # empty
|
|
467
466
|
|
|
468
|
-
logger.info("Extracted %s from INIT file", str(init_df.columns.values))
|
|
469
|
-
|
|
470
467
|
# PORV is indexed by active_index, not global, needs special treatment:
|
|
471
468
|
if include_porv:
|
|
472
469
|
porv_numpy = init.iget_named_kw("PORV", 0).numpyView()
|
|
@@ -474,7 +471,8 @@ def init2df(
|
|
|
474
471
|
egrid.get_global_index(active_index=ix)
|
|
475
472
|
for ix in range(egrid.getNumActive())
|
|
476
473
|
]
|
|
477
|
-
init_df["PORV"] = porv_numpy[glob_idxs]
|
|
474
|
+
init_df["PORV"] = porv_numpy[glob_idxs]
|
|
475
|
+
logger.info("Extracted %s from INIT file", str(init_df.columns.values))
|
|
478
476
|
return init_df
|
|
479
477
|
|
|
480
478
|
|
res2df/nnc.py
CHANGED
|
@@ -60,7 +60,7 @@ def df(
|
|
|
60
60
|
# Grid indices for first cell in cell pairs, into a vertical
|
|
61
61
|
# vector. The indices are "global" in resdata terms, and are
|
|
62
62
|
# 1-based (FORTRAN). Convert to zero-based before sending to get_ijk()
|
|
63
|
-
nnc1 = egrid_file["NNC1"][0].numpy_view()
|
|
63
|
+
nnc1 = egrid_file["NNC1"][0].numpy_view()
|
|
64
64
|
logger.info(
|
|
65
65
|
"NNC1: len: %d, min: %d, max: %d (global indices)",
|
|
66
66
|
len(nnc1),
|
|
@@ -76,7 +76,8 @@ def df(
|
|
|
76
76
|
nnc1_df[idx_cols1] += 1
|
|
77
77
|
|
|
78
78
|
# Grid indices for second cell in cell pairs
|
|
79
|
-
nnc2 = egrid_file["NNC2"][0].numpy_view()
|
|
79
|
+
nnc2 = egrid_file["NNC2"][0].numpy_view()
|
|
80
|
+
|
|
80
81
|
logger.info(
|
|
81
82
|
"NNC2: len: %d, min: %d, max: %d (global indices)",
|
|
82
83
|
len(nnc2),
|
|
@@ -91,7 +92,7 @@ def df(
|
|
|
91
92
|
nnc2_df[idx_cols2] += 1
|
|
92
93
|
|
|
93
94
|
# Obtain transmissibility value, corresponding to the cell pairs above.
|
|
94
|
-
tran = init_file["TRANNNC"][0].numpy_view()
|
|
95
|
+
tran = init_file["TRANNNC"][0].numpy_view()
|
|
95
96
|
logger.info(
|
|
96
97
|
"TRANNNC: len: %d, min: %f, max: %f, mean=%f",
|
|
97
98
|
len(tran),
|
res2df/version.py
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# file generated by setuptools-scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
3
|
|
|
4
|
-
__all__ = [
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
5
12
|
|
|
6
13
|
TYPE_CHECKING = False
|
|
7
14
|
if TYPE_CHECKING:
|
|
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
|
|
|
9
16
|
from typing import Union
|
|
10
17
|
|
|
11
18
|
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
12
20
|
else:
|
|
13
21
|
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
14
23
|
|
|
15
24
|
version: str
|
|
16
25
|
__version__: str
|
|
17
26
|
__version_tuple__: VERSION_TUPLE
|
|
18
27
|
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
19
30
|
|
|
20
|
-
__version__ = version = '1.3.
|
|
21
|
-
__version_tuple__ = version_tuple = (1, 3,
|
|
31
|
+
__version__ = version = '1.3.7'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 3, 7)
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|
|
@@ -7,10 +7,10 @@ res2df/csv2res.py,sha256=2LegGNGjEQ4lzRPjmS5MYTDsq8yWcRSd2OY6rpearEI,3283
|
|
|
7
7
|
res2df/equil.py,sha256=NIJwAgbpjJg0pxsqfxPB86d2rdAVMNJBKsJsoG6ExxU,17175
|
|
8
8
|
res2df/faults.py,sha256=5v4cWcEmIQwG8TXBBsiteT_3kCNO0noNiAiOZ6JC-80,3163
|
|
9
9
|
res2df/fipreports.py,sha256=jgwSDOMjtsoluRqhA03TzrnjvbI7nClCIYoDHQmsiY0,7696
|
|
10
|
-
res2df/grid.py,sha256=
|
|
10
|
+
res2df/grid.py,sha256=tqUUleUx0_cqYm25jCFkkH2RF0aIsaCW7y5eMVOBm84,27665
|
|
11
11
|
res2df/gruptree.py,sha256=-qDpjaeWY5Lk42wZJ-uBWyJvigcSCo1VOAOyBxrzhOk,16943
|
|
12
12
|
res2df/inferdims.py,sha256=ur0GE1ASzfzoXPgUjaow46NWBlBCgiX6qfAmn8HJatg,7329
|
|
13
|
-
res2df/nnc.py,sha256=
|
|
13
|
+
res2df/nnc.py,sha256=ct3p4-wS7PhEbgk3XSw2fIQ8XAMMKB-u3xBCoTCcVsE,9302
|
|
14
14
|
res2df/parameters.py,sha256=pkgmW5tVtyMav1T43RxdYHnoejvnZarFhKfhhgp028U,6277
|
|
15
15
|
res2df/pillars.py,sha256=NXFZhcd4L0pRFLH3B3ip_3ClVuy8Dgz13m4QW4mZDfA,16174
|
|
16
16
|
res2df/pvt.py,sha256=JNmCUvaNBnq-SUdmnxkt9n3rkR-HUneiHJBfINACVfU,22646
|
|
@@ -22,7 +22,7 @@ res2df/satfunc.py,sha256=sxoqXsORI5xijD0RSybr6unm-sQNpUckXFNwHEtVdv8,13808
|
|
|
22
22
|
res2df/summary.py,sha256=cHRL78XaypLCCdrIcW9gnlLmoCW6U6Nqpy5yO7FxaTQ,31833
|
|
23
23
|
res2df/svg_color_keyword_names.txt,sha256=yiI2Ohv3NxxEAJC5OjVERZi7MLi2-bk7okyI5-xFDr8,1456
|
|
24
24
|
res2df/trans.py,sha256=fWlelN74QPnxm5krWYXIGxhRZKVJA2r1lHXE-Ac1DuI,10880
|
|
25
|
-
res2df/version.py,sha256=
|
|
25
|
+
res2df/version.py,sha256=9qdAkeKpYRPlg4U3YkEjvtASI0L0DeNUwh145oTzMIs,704
|
|
26
26
|
res2df/wcon.py,sha256=67A2qtqokaefLyI5mdTaGkTlkSkDIRhVNVYA-8TE9oE,3376
|
|
27
27
|
res2df/wellcompletiondata.py,sha256=s4PvMNYBcgSJzPE6_so6suxgeI_fzHbDzA8kHxen-AA,10990
|
|
28
28
|
res2df/wellconnstatus.py,sha256=Wq6VHTrpbiqKveOu1T0Q_AT1gg4sqNI6rjc-LxuHJEs,4069
|
|
@@ -79,9 +79,9 @@ res2df/vfp/_vfpcommon.py,sha256=0no9r1jwGaABXexZ6WoKrOl2fFq87RMmcRZLE640cnk,7053
|
|
|
79
79
|
res2df/vfp/_vfpdefs.py,sha256=yvi5nCkJ2UZxVx0LuVbBHLNjn0e0UCSZudmzvTk689A,7028
|
|
80
80
|
res2df/vfp/_vfpinj.py,sha256=x_lyeYLLLfMo4knh8TSrcOM5vhe9mARiqMfKcWBiXdk,23690
|
|
81
81
|
res2df/vfp/_vfpprod.py,sha256=4fkRXs5TxuZPx4GbJod9NB2foxLC0wDdSFui7AyWh2c,36881
|
|
82
|
-
res2df-1.3.
|
|
83
|
-
res2df-1.3.
|
|
84
|
-
res2df-1.3.
|
|
85
|
-
res2df-1.3.
|
|
86
|
-
res2df-1.3.
|
|
87
|
-
res2df-1.3.
|
|
82
|
+
res2df-1.3.7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
83
|
+
res2df-1.3.7.dist-info/METADATA,sha256=lV8yxdAGJ9hF5GmnJQIK8ZuMPGvcLRePe8iYAKV-FTo,44422
|
|
84
|
+
res2df-1.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
85
|
+
res2df-1.3.7.dist-info/entry_points.txt,sha256=ctl-_CwayyUVqFMUrwTT3Z3gZdnW6WCaiaLUJ4f_HnY,180
|
|
86
|
+
res2df-1.3.7.dist-info/top_level.txt,sha256=U8AZBqrFHm9PMXg0toCfHJ817VfFtdKQpc8JuS5qToM,7
|
|
87
|
+
res2df-1.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|