From a620b1099646d6a2b405f95d169ac6d39d9065c8 Mon Sep 17 00:00:00 2001 From: Even Solbraa <41290109+EvenSol@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:25:05 +0000 Subject: [PATCH] try fix --- README.md | 2 +- neqsim/thermo/thermoTools.py | 2 +- tests/process/test_dynamic_process.py | 4 +++- tests/test_NeqSim.py | 5 +++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cb95bb5..19e7464 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ NeqSim Python is distributed as a pip package. End-users should install neqsim python with some additional packages by running ``` -pip install neqsim[interactive] +pip install neqsim ``` ## Getting Started diff --git a/neqsim/thermo/thermoTools.py b/neqsim/thermo/thermoTools.py index 42b33eb..7cd2690 100644 --- a/neqsim/thermo/thermoTools.py +++ b/neqsim/thermo/thermoTools.py @@ -13,7 +13,7 @@ if has_matplotlib(): import matplotlib.pyplot as plt -thermodynamicoperations = neqsim.thermodynamicoperations.ThermodynamicOperations +thermodynamicoperations = neqsim.thermodynamicoperations.ThermodynamicOperations() fluidcreator = neqsim.thermo.Fluid() fluid_type = { "srk": neqsim.thermo.system.SystemSrkEos, diff --git a/tests/process/test_dynamic_process.py b/tests/process/test_dynamic_process.py index e18bb7c..b1fe816 100644 --- a/tests/process/test_dynamic_process.py +++ b/tests/process/test_dynamic_process.py @@ -1,4 +1,6 @@ -from jneqsim import neqsim +import jneqsim +import jpype +neqsim = jpype.JPackage('neqsim') def test_dynamic_compressor(): diff --git a/tests/test_NeqSim.py b/tests/test_NeqSim.py index 5fe7c9b..03204af 100644 --- a/tests/test_NeqSim.py +++ b/tests/test_NeqSim.py @@ -5,8 +5,10 @@ @author: ESOL """ import os -from jneqsim import neqsim +import jpype +import jneqsim +neqsim = jpype.JPackage('neqsim') def test_Viscosity(): thermoSystem = neqsim.thermo.system.SystemSrkEos(280.0, 10.0) @@ -35,7 +37,6 @@ def test_hasComponentDatabase(): def test_fullOffshoreProcess(): import pandas as pd - import math # well stream composition (mole fractions) reservoirFluid = {