Skip to content

Commit

Permalink
prepare for use of jneqsim
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Oct 15, 2024
1 parent d2c1402 commit 8922775
Show file tree
Hide file tree
Showing 16 changed files with 135 additions and 151 deletions.
1 change: 1 addition & 0 deletions .devcontainer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
jneqsim
jpype1
pandas
matplotlib
Expand Down
7 changes: 4 additions & 3 deletions neqsim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
It uses the Jpype module for bridging python and Java.
"""

from neqsim.neqsimpython import jneqsim, jpype
from jneqsim import neqsim
import jpype


def methods(checkClass):
Expand All @@ -26,8 +27,8 @@ def has_tabulate():


def setDatabase(connectionString):
jneqsim.util.database.NeqSimDataBase.setConnectionString(connectionString)
jneqsim.util.database.NeqSimDataBase.setCreateTemporaryTables(True)
neqsim.util.database.NeqSimDataBase.setConnectionString(connectionString)
neqsim.util.database.NeqSimDataBase.setCreateTemporaryTables(True)


def save_xml(javaobject, filename):
Expand Down
Binary file removed neqsim/lib/java11/neqsim-3.0.0.jar
Binary file not shown.
Binary file removed neqsim/lib/java8/neqsim-3.0.0-Java8.jar
Binary file not shown.
20 changes: 0 additions & 20 deletions neqsim/neqsimpython.py

This file was deleted.

6 changes: 3 additions & 3 deletions neqsim/process/measurement.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from neqsim import jneqsim
from jneqsim import neqsim
import jpype
import jpype.imports
from jpype import JImplements, JOverride
Expand All @@ -10,8 +10,8 @@


@JImplements(
jneqsim.processsimulation.measurementdevice.MeasurementDeviceInterface
) # Use the fully qualified class name directly from the jneqsim package
neqsim.processsimulation.measurementdevice.MeasurementDeviceInterface
) # Use the fully qualified class name directly from the neqsim package
class measurement:
def __init__(self):
self.name = ""
Expand Down
Loading

0 comments on commit 8922775

Please sign in to comment.