Skip to content

Commit

Permalink
fix parsing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed Jan 26, 2024
1 parent 632e935 commit 5c40dcd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions cnapy/gui_elements/mcs_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def compute_optlang(self):
for i in range(0, rows):
p1 = self.target_list.cellWidget(i, 0).text()
p2 = self.target_list.cellWidget(i, 1).text()
p2 = p2.replace(" - ", " + -") # Clunky fix to allow "-" in equations
if len(p1) > 0 and len(p2) > 0:
if self.target_list.cellWidget(i, 2).currentText() == '≤':
p3 = "<="
Expand Down Expand Up @@ -351,9 +350,7 @@ def compute_optlang(self):
desired_dict = dict()
for i in range(0, rows):
p1 = self.desired_list.cellWidget(i, 0).text()
p1 = p1.replace(" - ", " + -")
p2 = self.desired_list.cellWidget(i, 1).text()
p2 = p2.replace(" - ", " + -") # Clunky fix to allow "-" in equations
if len(p1) > 0 and len(p2) > 0:
if self.desired_list.cellWidget(i, 2).currentText() == '≤':
p3 = "<="
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- requests=2.28
- psutil=5.9
- efmtool_link=0.0.4
- optlang_enumerator>=0.0.8
- optlang_enumerator>=0.0.9
- straindesign>=1.9
- nest-asyncio
- gurobi
Expand Down
2 changes: 1 addition & 1 deletion recipes/linux/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ requirements:
- requests=2.28
- psutil=5.9
- efmtool_link=0.0.4
- optlang_enumerator>=0.0.8
- optlang_enumerator>=0.0.9
- straindesign>=1.9
- gurobi
- cplex
Expand Down
2 changes: 1 addition & 1 deletion recipes/noarch/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ requirements:
- requests=2.28
- psutil=5.9
- efmtool_link=0.0.4
- optlang_enumerator>=0.0.8
- optlang_enumerator>=0.0.9
- straindesign>=1.9
- nest-asyncio
- gurobi
Expand Down
2 changes: 1 addition & 1 deletion recipes/win/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ requirements:
- requests=2.28
- psutil=5.9
- efmtool_link=0.0.4
- optlang_enumerator>=0.0.8
- optlang_enumerator>=0.0.9
- straindesign>=1.9
- nest-asyncio
- gurobi
Expand Down

0 comments on commit 5c40dcd

Please sign in to comment.