Skip to content

Commit

Permalink
remove disused pyomo components
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns committed Aug 5, 2024
1 parent 46b9c92 commit 9092cd5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions arkane/encorr/isodesmic.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"""

import logging
import signal
from copy import deepcopy
from typing import List, Union

Expand Down Expand Up @@ -758,18 +757,6 @@ def calculate_target_enthalpy(self, n_reactions_max=5):
return ScalarQuantity(np.median(h298_list), "J/mol"), reaction_list


def _pyo_obj_expression(model):
return pyo.summation(model.v, model.s, index=model.i)


def _pyo_constraint_rule(model, col):
return (
sum(model.v[row] * model.c[row, col] for row in model.r)
- sum(model.v[row] * model.c[row, col] for row in model.p)
== model.t[col]
)


class IsodesmicScheme(ErrorCancelingScheme):
"""
An error canceling reaction where the number and type of both atoms and bonds are conserved
Expand Down
4 changes: 0 additions & 4 deletions test/arkane/encorr/isodesmicTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,3 @@ def test_calculate_target_enthalpy(self):
target_thermo, rxn_list = scheme.calculate_target_enthalpy(n_reactions_max=3)
assert target_thermo.value_si == 110000.0
assert isinstance(rxn_list[0], ErrorCancelingReaction)

if self.pyo is not None:
target_thermo, _ = scheme.calculate_target_enthalpy(n_reactions_max=3)
assert target_thermo.value_si == 110000.0

0 comments on commit 9092cd5

Please sign in to comment.