Skip to content

Commit 6736d56

Browse files
committed
update
1 parent f9ba9e4 commit 6736d56

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/neqsim/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ def open_neqsim(filename, allow_all=True, wildcard_permission=None):
6464
xml_bytes = f.read()
6565
elif ext == ".zip":
6666
import zipfile
67-
with zipfile.ZipFile(filename, 'r') as zf:
68-
with zf.open('process.xml') as f:
67+
68+
with zipfile.ZipFile(filename, "r") as zf:
69+
with zf.open("process.xml") as f:
6970
xml_bytes = f.read()
7071
else:
7172
raise ValueError(f"Unsupported file extension: {ext}")
@@ -96,7 +97,9 @@ def save_neqsim(javaobject, filename):
9697
bool: True if the file is successfully written, False otherwise.
9798
"""
9899
if not jpype.isJVMStarted():
99-
raise RuntimeError("JVM is not started. Please start the JVM with the correct classpath.")
100+
raise RuntimeError(
101+
"JVM is not started. Please start the JVM with the correct classpath."
102+
)
100103

101104
try:
102105
# Java imports

tests/process/test_ProcessTools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ def test_gasoilprocess():
420420

421421
from neqsim import save_neqsim, open_neqsim
422422
from neqsim.process import getProcess
423+
423424
save_neqsim(getProcess(), "test_gasoilprocess.zip")
424425

425426
process1 = open_neqsim("test_gasoilprocess.zip")

0 commit comments

Comments
 (0)