Skip to content

Commit 199f719

Browse files
committed
update
1 parent 7777626 commit 199f719

File tree

303 files changed

+9626
-31477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+9626
-31477
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
10+
exclude: ^conda/meta\.yaml$
1011
- id: check-added-large-files
1112
- repo: https://github.com/psf/black
1213
rev: 24.10.0

src/jneqsim-stubs/jneqsim-stubs/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
21

2+
import sys
33
if sys.version_info >= (3, 8):
44
from typing import Protocol
55
else:
@@ -22,6 +22,7 @@ import jneqsim.thermodynamicoperations
2222
import jneqsim.util
2323
import typing
2424

25+
2526
class __module_protocol__(Protocol):
2627
# A module protocol which reflects the result of ``jp.JPackage("neqsim")``.
2728

src/jneqsim-stubs/jneqsim-stubs/api/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
21

2+
import sys
33
if sys.version_info >= (3, 8):
44
from typing import Protocol
55
else:
@@ -8,6 +8,7 @@ else:
88
import jneqsim.api.ioc
99
import typing
1010

11+
1112
class __module_protocol__(Protocol):
1213
# A module protocol which reflects the result of ``jp.JPackage("jneqsim.api")``.
1314

src/jneqsim-stubs/jneqsim-stubs/api/ioc/__init__.pyi

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
21

2+
import sys
33
if sys.version_info >= (3, 8):
44
from typing import Protocol
55
else:
@@ -9,19 +9,16 @@ import java.lang
99
import jpype
1010
import typing
1111

12+
13+
1214
class CalculationResult:
1315
fluidProperties: typing.MutableSequence[typing.MutableSequence[float]] = ...
1416
calculationError: typing.MutableSequence[java.lang.String] = ...
15-
def __init__(
16-
self,
17-
doubleArray: typing.Union[
18-
typing.List[typing.MutableSequence[float]], jpype.JArray
19-
],
20-
stringArray: typing.Union[typing.List[java.lang.String], jpype.JArray],
21-
): ...
17+
def __init__(self, doubleArray: typing.Union[typing.List[typing.MutableSequence[float]], jpype.JArray], stringArray: typing.Union[typing.List[java.lang.String], jpype.JArray]): ...
2218
def equals(self, object: typing.Any) -> bool: ...
2319
def hashCode(self) -> int: ...
2420

21+
2522
class __module_protocol__(Protocol):
2623
# A module protocol which reflects the result of ``jp.JPackage("jneqsim.api.ioc")``.
2724

src/jneqsim-stubs/jneqsim-stubs/blackoil/__init__.pyi

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import sys
21

2+
import sys
33
if sys.version_info >= (3, 8):
44
from typing import Protocol
55
else:
@@ -11,42 +11,24 @@ import jneqsim.blackoil.io
1111
import jneqsim.thermo.system
1212
import typing
1313

14+
15+
1416
class BlackOilConverter:
1517
def __init__(self): ...
1618
@staticmethod
17-
def convert(
18-
systemInterface: jneqsim.thermo.system.SystemInterface,
19-
double: float,
20-
doubleArray: typing.Union[typing.List[float], jpype.JArray],
21-
double3: float,
22-
double4: float,
23-
) -> "BlackOilConverter.Result": ...
24-
19+
def convert(systemInterface: jneqsim.thermo.system.SystemInterface, double: float, doubleArray: typing.Union[typing.List[float], jpype.JArray], double3: float, double4: float) -> 'BlackOilConverter.Result': ...
2520
class Result:
26-
pvt: "BlackOilPVTTable" = ...
27-
blackOilSystem: "SystemBlackOil" = ...
21+
pvt: 'BlackOilPVTTable' = ...
22+
blackOilSystem: 'SystemBlackOil' = ...
2823
rho_o_sc: float = ...
2924
rho_g_sc: float = ...
3025
rho_w_sc: float = ...
3126
bubblePoint: float = ...
3227
def __init__(self): ...
3328

3429
class BlackOilFlash:
35-
def __init__(
36-
self,
37-
blackOilPVTTable: "BlackOilPVTTable",
38-
double: float,
39-
double2: float,
40-
double3: float,
41-
): ...
42-
def flash(
43-
self,
44-
double: float,
45-
double2: float,
46-
double3: float,
47-
double4: float,
48-
double5: float,
49-
) -> "BlackOilFlashResult": ...
30+
def __init__(self, blackOilPVTTable: 'BlackOilPVTTable', double: float, double2: float, double3: float): ...
31+
def flash(self, double: float, double2: float, double3: float, double4: float, double5: float) -> 'BlackOilFlashResult': ...
5032

5133
class BlackOilFlashResult:
5234
O_std: float = ...
@@ -69,9 +51,7 @@ class BlackOilFlashResult:
6951
def __init__(self): ...
7052

7153
class BlackOilPVTTable:
72-
def __init__(
73-
self, list: java.util.List["BlackOilPVTTable.Record"], double: float
74-
): ...
54+
def __init__(self, list: java.util.List['BlackOilPVTTable.Record'], double: float): ...
7555
def Bg(self, double: float) -> float: ...
7656
def Bo(self, double: float) -> float: ...
7757
def Bw(self, double: float) -> float: ...
@@ -82,7 +62,6 @@ class BlackOilPVTTable:
8262
def mu_g(self, double: float) -> float: ...
8363
def mu_o(self, double: float) -> float: ...
8464
def mu_w(self, double: float) -> float: ...
85-
8665
class Record:
8766
p: float = ...
8867
Rs: float = ...
@@ -93,28 +72,11 @@ class BlackOilPVTTable:
9372
Rv: float = ...
9473
Bw: float = ...
9574
mu_w: float = ...
96-
def __init__(
97-
self,
98-
double: float,
99-
double2: float,
100-
double3: float,
101-
double4: float,
102-
double5: float,
103-
double6: float,
104-
double7: float,
105-
double8: float,
106-
double9: float,
107-
): ...
75+
def __init__(self, double: float, double2: float, double3: float, double4: float, double5: float, double6: float, double7: float, double8: float, double9: float): ...
10876

10977
class SystemBlackOil:
110-
def __init__(
111-
self,
112-
blackOilPVTTable: BlackOilPVTTable,
113-
double: float,
114-
double2: float,
115-
double3: float,
116-
): ...
117-
def copyShallow(self) -> "SystemBlackOil": ...
78+
def __init__(self, blackOilPVTTable: BlackOilPVTTable, double: float, double2: float, double3: float): ...
79+
def copyShallow(self) -> 'SystemBlackOil': ...
11880
def flash(self) -> BlackOilFlashResult: ...
11981
def getBg(self) -> float: ...
12082
def getBo(self) -> float: ...
@@ -139,6 +101,7 @@ class SystemBlackOil:
139101
def setStdTotals(self, double: float, double2: float, double3: float) -> None: ...
140102
def setTemperature(self, double: float) -> None: ...
141103

104+
142105
class __module_protocol__(Protocol):
143106
# A module protocol which reflects the result of ``jp.JPackage("jneqsim.blackoil")``.
144107

0 commit comments

Comments
 (0)