Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Oct 15, 2024
1 parent 8922775 commit 8381c8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
16 changes: 5 additions & 11 deletions neqsim/process/processTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ def stream(name, thermoSystem, t=0, p=0):
thermoSystem.setTemperature(t)
if p != 0:
thermoSystem.setPressure(p)
stream = neqsim.processsimulation.processequipment.stream.Stream(
name, thermoSystem
)
stream = neqsim.processsimulation.processequipment.stream.Stream(name, thermoSystem)
processoperations.add(stream)
return stream

Expand Down Expand Up @@ -129,10 +127,8 @@ def gasscrubber(name, teststream):


def separator3phase(name, teststream):
separator = (
neqsim.processsimulation.processequipment.separator.ThreePhaseSeparator(
name, teststream
)
separator = neqsim.processsimulation.processequipment.separator.ThreePhaseSeparator(
name, teststream
)
separator.setName(name)
processoperations.add(separator)
Expand Down Expand Up @@ -253,10 +249,8 @@ def nequnit(


def compsplitter(name, teststream, splitfactors):
compSplitter = (
neqsim.processsimulation.processequipment.splitter.ComponentSplitter(
name, teststream
)
compSplitter = neqsim.processsimulation.processequipment.splitter.ComponentSplitter(
name, teststream
)
compSplitter.setSplitFactors(splitfactors)
processoperations.add(compSplitter)
Expand Down
4 changes: 1 addition & 3 deletions tests/process/test_measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def test_addPythonUnitOp():
fluid1.addComponent("n-hexane", 1.0, "kg/sec")
fluid1.setMixingRule(2)

stream1 = neqsim.processsimulation.processequipment.stream.Stream(
"stream1", fluid1
)
stream1 = neqsim.processsimulation.processequipment.stream.Stream("stream1", fluid1)
stream1.setFlowRate(30000, "kg/hr")

meas1 = ExampleMeasurement()
Expand Down

0 comments on commit 8381c8a

Please sign in to comment.