Skip to content

Commit eccada5

Browse files
committed
fix error
1 parent cf7c91e commit eccada5

788 files changed

Lines changed: 25380 additions & 109730 deletions

File tree

Some content is hidden

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

src/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:
@@ -23,6 +23,7 @@ import jneqsim.thermodynamicoperations
2323
import jneqsim.util
2424
import typing
2525

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

src/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/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/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:
@@ -12,42 +12,24 @@ import jneqsim.blackoil.io
1212
import jneqsim.thermo.system
1313
import typing
1414

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

3530
class BlackOilFlash(java.io.Serializable):
36-
def __init__(
37-
self,
38-
blackOilPVTTable: "BlackOilPVTTable",
39-
double: float,
40-
double2: float,
41-
double3: float,
42-
): ...
43-
def flash(
44-
self,
45-
double: float,
46-
double2: float,
47-
double3: float,
48-
double4: float,
49-
double5: float,
50-
) -> "BlackOilFlashResult": ...
31+
def __init__(self, blackOilPVTTable: 'BlackOilPVTTable', double: float, double2: float, double3: float): ...
32+
def flash(self, double: float, double2: float, double3: float, double4: float, double5: float) -> 'BlackOilFlashResult': ...
5133

5234
class BlackOilFlashResult(java.io.Serializable):
5335
O_std: float = ...
@@ -70,9 +52,7 @@ class BlackOilFlashResult(java.io.Serializable):
7052
def __init__(self): ...
7153

7254
class BlackOilPVTTable(java.io.Serializable):
73-
def __init__(
74-
self, list: java.util.List["BlackOilPVTTable.Record"], double: float
75-
): ...
55+
def __init__(self, list: java.util.List['BlackOilPVTTable.Record'], double: float): ...
7656
def Bg(self, double: float) -> float: ...
7757
def Bo(self, double: float) -> float: ...
7858
def Bw(self, double: float) -> float: ...
@@ -83,7 +63,6 @@ class BlackOilPVTTable(java.io.Serializable):
8363
def mu_g(self, double: float) -> float: ...
8464
def mu_o(self, double: float) -> float: ...
8565
def mu_w(self, double: float) -> float: ...
86-
8766
class Record(java.io.Serializable):
8867
p: float = ...
8968
Rs: float = ...
@@ -94,28 +73,11 @@ class BlackOilPVTTable(java.io.Serializable):
9473
Rv: float = ...
9574
Bw: float = ...
9675
mu_w: float = ...
97-
def __init__(
98-
self,
99-
double: float,
100-
double2: float,
101-
double3: float,
102-
double4: float,
103-
double5: float,
104-
double6: float,
105-
double7: float,
106-
double8: float,
107-
double9: float,
108-
): ...
76+
def __init__(self, double: float, double2: float, double3: float, double4: float, double5: float, double6: float, double7: float, double8: float, double9: float): ...
10977

11078
class SystemBlackOil(java.io.Serializable):
111-
def __init__(
112-
self,
113-
blackOilPVTTable: BlackOilPVTTable,
114-
double: float,
115-
double2: float,
116-
double3: float,
117-
): ...
118-
def copyShallow(self) -> "SystemBlackOil": ...
79+
def __init__(self, blackOilPVTTable: BlackOilPVTTable, double: float, double2: float, double3: float): ...
80+
def copyShallow(self) -> 'SystemBlackOil': ...
11981
def flash(self) -> BlackOilFlashResult: ...
12082
def getBg(self) -> float: ...
12183
def getBo(self) -> float: ...
@@ -140,6 +102,7 @@ class SystemBlackOil(java.io.Serializable):
140102
def setStdTotals(self, double: float, double2: float, double3: float) -> None: ...
141103
def setTemperature(self, double: float) -> None: ...
142104

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

0 commit comments

Comments
 (0)